Command Palette

Search for a command to run...

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

Blink

БесплатноЗапускает вложенные скриптыНе проверен

Bitcoin Lightning wallet for agents — balances, invoices, payments, BTC/USD swaps, QR codes, price conversion, transaction history, non-custodial (Spark)…

pretyflacoот pretyflaco855 установок в других каталогах

Об этом скилле

Blink Skill

Bitcoin Lightning wallet operations via the Blink API. Enables agents to check balances, receive payments via invoices, send payments over Lightning, track transactions, monitor prices, and automatically pay for L402-gated web services.

What is Blink?

Blink is a Bitcoin Lightning wallet with a GraphQL API. Accounts are either custodial (Blink holds the keys; this is the default and what most commands target) or non-custodial (Spark) (the user holds a seed). See references/non-custodial.md for the non-custodial commands (resolve-receiver, create-invoice-lnaddress, and the seed-gated spark-* commands). Key concepts:

  • API Key — authentication token (format: blink_...) with scoped permissions (Read, Receive, Write)
  • BTC Wallet — balance denominated in satoshis
  • USD Wallet — balance denominated in cents (stablecoin pegged to USD)
  • Lightning Invoice — BOLT-11 payment request string (lnbc...) used to receive payments
  • Lightning Address — human-readable address (user@domain) for sending payments without an invoice
  • LNURL — protocol for interacting with Lightning services via encoded URLs
  • L402 — HTTP payment protocol (RFC draft) that gates resources behind a Lightning invoice. Servers return HTTP 402 with a macaroon + invoice; clients pay and retry with the token.

Environment

  • Requires bash and Node.js 22.4+ (all commands, including the non-custodial spark-* commands, l402-pay --spark, and WebSocket subscriptions).
  • Credentials depend on the command — no single env var is required skill-wide:
    • Credential-free (no key, no seed): resolve-receiver, create-invoice-lnaddress. These use public LNURL-pay on blink.sv.
    • Custodial commands need BLINK_API_KEY with the appropriate scopes.
    • Non-custodial (Spark) commands (spark-balance, spark-send, spark-fee-probe, spark-transactions, spark-subscribe, spark-info, spark-token-info, spark-receive-token, spark-lnaddress, and l402-pay --spark) need SPARK_MNEMONIC (the account seed — spend authority) plus BREEZ_API_KEY.
  • Zero required runtime npm dependencies. The custodial and credential-free commands use only Node.js built-ins (node:util, node:fs, node:path, node:child_process). Two optional, lazy-loaded dependencies exist solely for the spark-* commands and l402-pay --spark, and are loaded only when one runs: @breeztech/breez-sdk-spark and bip39.

Use this skill for concrete wallet operations, not generic Lightning theory.

Getting Started

1. Get your API key

  1. Create a free account at dashboard.blink.sv.
  2. Go to API Keys and create a key with the scopes you need.
  3. Set it in your environment:
export BLINK_API_KEY="blink_..."

API Key Scopes:

  • Read — query balances, transaction history, price, account info
  • Receive — create invoices
  • Write — send payments (use with caution)

Tip: Start with Read + Receive only. Add Write when you need to send payments.

2. Verify it works

node {baseDir}/scripts/balance.js

If you see JSON with your wallet balances, you're ready.

3. Staging / Testnet (recommended for first-time setup)

To use the Blink staging environment (signet) instead of real money:

export BLINK_API_URL="https://api.staging.blink.sv/graphql"

Overrides must be `https://`/`wss://` (plaintext only for literal `localhost`/`127.0.0.1` — regtest/dev), and hosts outside `*.blink.sv` additionally require `BLINK_ALLOW_CUSTOM_AUTH_HOST=1` so the API key cannot be silently pointed at an arbitrary host (v2.6.1). The http→ws auto-downgrade was removed: https API hosts derive wss sockets.

Create a staging API key at dashboard.staging.blink.sv. The staging environment uses signet bitcoin (no real value) — perfect for testing payment flows safely.

If BLINK_API_URL is not set, production (https://api.blink.sv/graphql) is used by default.

Non-custodial note: BLINK_API_URL staging applies to custodial commands only. The spark-* commands target Spark mainnet by default; set SPARK_NETWORK=regtest (or pass --network regtest) for Spark regtest. See non-custodial.

API key resolution

Scripts read BLINK_API_KEY from the process environment only:

  1. process.env.BLINK_API_KEY

No filesystem fallback: shell rc files (~/.bashrc, ~/.profile, etc.) are never read. Export the key in your shell or agent environment before running scripts.

Optional: CLI wrapper (full GitHub repo only)

If you have cloned the full GitHub repo, you can optionally install a blink CLI command:

npm install   # install dev dependencies (eslint, prettier)
npm link      # creates global 'blink' command
blink --help  # verify

Note: npm link modifies global npm state.

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

Установить Blink в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Blink?

Bitcoin Lightning wallet for agents — balances, invoices, payments, BTC/USD swaps, QR codes, price conversion, transaction history, non-custodial (Spark) accounts, and L402 auto-pay client via the Blink API. All output is JSON.

Как установить скилл Blink?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Blink запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить Blink с