Blink
БесплатноЗапускает вложенные скриптыНе проверенBitcoin Lightning wallet for agents — balances, invoices, payments, BTC/USD swaps, QR codes, price conversion, transaction history, non-custodial (Spark)…
от 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
bashand Node.js 22.4+ (all commands, including the non-custodialspark-*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 onblink.sv. - Custodial commands need
BLINK_API_KEYwith 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, andl402-pay --spark) needSPARK_MNEMONIC(the account seed — spend authority) plusBREEZ_API_KEY.
- Credential-free (no key, no seed):
- 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 thespark-*commands andl402-pay --spark, and are loaded only when one runs:@breeztech/breez-sdk-sparkandbip39.
Use this skill for concrete wallet operations, not generic Lightning theory.
Getting Started
1. Get your API key
- Create a free account at dashboard.blink.sv.
- Go to API Keys and create a key with the scopes you need.
- 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_URLstaging applies to custodial commands only. Thespark-*commands target Spark mainnet by default; setSPARK_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:
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 linkmodifies global npm state.
Установить 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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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