Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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…

wahidmyот 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)

  1. GET /api/auth/csrf → {csrfToken}. GET — the POST form of this route answers 400.
  2. POST /api/auth/2fa/send {email, locale, callbackUrl} mails {APP_URL}/verify/<jwt>. Use {APP_URL}/dashboard as callbackUrl; any same-origin URL works.
  3. Read the mail. It is MJML with =\r\n soft line breaks — replace("=\r\n", "") before extracting the JWT, or the token truncates silently.
  4. A plain GET /verify/<jwt> sets no cookie: the page is client-rendered, so the GET proves nothing.
  5. 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.
  6. Prove it with GET /api/auth/session echoing 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

Полный SKILL.md на ClawHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить lightning-gifts с