lightning-gifts
БесплатноБез исполняемых скриптовНе проверенCreate and fund bitcoin gifts over the Lightning Network with the lightning.gifts API — sign in, mint a gift, pay its BOLT11 invoice, hand off a claim link…
от wahidmy197 установок в других каталогахОб этом скилле
Lightning Gifts
Lightning Gifts is our hosted service for gifting bitcoin over the Lightning Network: a giver creates
a gift and pays a BOLT11 funding invoice, and the recipient claims it in a browser and withdraws to a
wallet they control. This skill is the operator's own guidance for the giver half over HTTP.
{APP_URL} is https://lightning.gifts.
It is not a wallet, an exchange or an account that holds your funds: sats sit in our staging wallet only between claim and withdrawal. You need a Lightning wallet that can pay a BOLT11 invoice, and (given no API key) a mailbox you control.
When this applies
- "Send someone bitcoin as a gift", birthday or thank-you gifts, tipping in sats, gift cards.
- Scripting gift creation from an agent that can pay a Lightning invoice.
- Reclaiming a gift that expired unclaimed.
Not this skill: deploying or administering the service, operator/admin routes, or the recipient's own
claim and withdrawal — references/endpoints.md covers the handoff routes if you need to explain them.
Credentials
| Credential | Header | Use |
|---|---|---|
| Per-user API key | Authorization: Bearer <key> |
Your own account. Create at Profile → Developer API Keys, or POST /api/users/{id}/apiKeys. |
| Session cookie | Cookie: __Host-… |
What the web UI uses. Secure-only, so only an https origin can hold it. |
| Operator key | Authorization: Bearer <API_KEY> |
Scheduled jobs only. Header only — a key in a query string is refused. |
The user key acts as its owner with no scopes and no expiry, so treat it as a password: a secret
store, never a URL, log, commit or example. 401 means no credential was accepted; 403 means the
credential was valid but the caller is someone else (a user key may only act as its own user).
Send a descriptive User-Agent. The edge answers 403 to some default script-library agents — a
bare Python-urllib is refused where curl and named agents pass.
Signing in with the email link (no key yet)
GET /api/auth/csrf→{csrfToken}. GET — the POST form of this route answers 400.POST /api/auth/2fa/send{email, locale, callbackUrl}mails{APP_URL}/verify/<jwt>. Use{APP_URL}/dashboardascallbackUrl; any same-origin URL works.- Read the mail. It is MJML with
=\r\nsoft line breaks —replace("=\r\n", "")before extracting the JWT, or the token truncates silently. - A plain
GET /verify/<jwt>sets no cookie: the page is client-rendered, so the GET proves nothing. POST /api/auth/callback/2fa, form-encoded:csrfToken,token,callbackUrl,json=true. It must be POST — a GET falls through to a 500 that looks like a misconfiguration.- Prove it with
GET /api/auth/sessionechoing the user. A cookie's presence proves nothing.
The giver run
Each step ends with a check. Do not proceed on an assumption.
1. Preflight — can this deployment take money right now?
GET /api/payments-capability → {canReceive, reason, checkedAt}. It fails open: true also means
"nothing is claiming otherwise".
Done when canReceive is true. If it is false, stop and tell the user payments are paused — an
invoice minted now cannot be paid, yet gift creation still succeeds, so nothing downstream catches it.
2. Price it in sats
amount is always the gift value in sats, a positive whole integer. currency is display
metadata: the API never converts. If the human thinks in fiat, convert first — GET /api/exchange/rates quotes BTC and fiat.
The giver pays a fee on top: 1%, floored at 100 sats, and the floor governs below roughly 10,000
sats (fee = max(100, ceil((amount + max(100, ceil(amount/100))) / 100))). The ceiling test is
amount + fee ≤ MAX_TIP_SATS, and MAX_TIP_SATS is a per-deployment build constant — read it from
that deployment's own form or its validation error, never from a document, including this one.
Exceeding it answers 500 "The total amount must not exceed <n> satoshis".
Done when you can state amount in sats and amount + fee against that deployment's ceiling.
3. Create the gift
POST /api/gifts
{"amount":21000,"currency":"USD","expiry":"2026-12-24T00:00:00.000Z","onboardingFlow":"DEFAULT",
"tippeeLocale":"en","anonymousTipper":false,"generatePassphrase":false,"passphraseLength":4}
expiry is an ISO datetime: future, at most 90 days out. onboardingFlow is DEFAULT (claim, then
onboarding), SKIP (the recipient withdraws instantly with no account — the claim token is then
their only handle) or LIGHTNING (wallet-first). generatePassphrase adds 4–6 words the recipient
can type at /redeem instead of using the link.
Response: id, amount, fee, invoice (the BOLT11 to pay), status: "UNFUNDED", expiry.
Optional fields the form never sends: note, tippeeName, claimWebhookUrl, withdrawWebhookUrl
(https, publicly resolvable only).
Done when you hold a gift id and its invoice.
4. Pay the funding invoice
Установить lightning-gifts в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл lightning-gifts?
Create and fund bitcoin gifts over the Lightning Network with the lightning.gifts API — sign in, mint a gift, pay its BOLT11 invoice, hand off a claim link, reclaim an expired one. Use when sending someone bitcoin as a gift, or when a task mentions lightning.gifts, gifting sats, or a gift's funding invoice.
Как установить скилл lightning-gifts?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lightning-gifts запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic