lightning-lnd
БесплатноБез исполняемых скриптовНе проверенLND (Lightning Network Daemon) by Lightning Labs: gRPC + REST API, macaroons, lncli, autopilot, channel backups (SCB), Tor support, watchtowers, integration…
от claude-dev-suite★ 51 звезда на GitHubОб этом скилле
LND (Lightning Network Daemon)
LND is the most widely deployed Lightning implementation. Written in Go, primary backend for many services, exchanges, and apps.
Release lines (as of September 2026)
v0.21.3-beta(2026-09-02) — current release, reproducibly built withgo1.26.6.v0.20.4-beta(2026-09-02) — maintenance branch, still receiving backports, but see the reorg bug below.v0.21.0-beta(2026-06-05) opened the 0.21 line.
New in v0.21.0-beta:
- Reorg protection for channel closes (see below).
- Production (final) simple taproot channels, feature bits 80/81.
Request with
lncli openchannel --channel_type=taproot;taproot-stagingstill opens the legacy staging variant. Must stay private until announced taproot channels are supported. - Taproot channel support for the RBF cooperative close protocol
(
--protocol.rbf-coop-close, the protocol itself added inv0.19.0). - Basic onion message forwarding, feature bits 38/39, on by default —
disable with
protocol.no-onion-messages=true. Ingress is rate limited per peer (~0.5 Mbps default) and globally (~5 Mbps), and messages from peers with no fully open channel are dropped unlessprotocol.onion-msg-relay-all=true. - The KV-to-SQL payments migration is promoted out of the
test_native_sqlbuild tag into mainline builds, for users running with thenative-sqlsetting enabled.
Security: coop-close reorg bug (fixed in v0.21.0-beta)
Disclosed publicly by Bastien Teinturier on 2026-08-13 (discovered
February 2025; no known victims). Before the fix, lnd forgot a
collaboratively closed channel immediately after the first on-chain
confirmation. After a 1-block reorg an attacker could publish any
revoked commitment for that channel; because lnd had already
forgotten it, no penalty transaction was published and the attacker
could take up to the entire channel balance.
Fixed by #10331:
peer.WaitForChanToClose now registers for a capacity-scaled number of
confirmations instead of a hardcoded 1.
lnwallet.CloseConfsForCapacity scales linearly up to 6 confirmations
at the maximum non-wumbo channel size (MaxBtcFundingAmount,
0.16777215 BTC), with a floor of 3 confirmations even for tiny
channels; wumbo channels always require 6. This follows the BOLT 5
recommendation to wait for confirmations before discarding channel
state.
Mind the fixed version. The disclosure post and Bitcoin Optech both
say "v0.20.0, February 2026", but the fix is not in the 0.20 line:
peer/brontide.go at v0.20.4-beta still registers for 1
confirmation, and lnwallet/confscale.go first appears at
v0.21.0-beta. Treat v0.21.0-beta (2026-06-05) as the minimum safe
version.
Operational consequences:
- A coop close is no longer final on the first confirmation.
SubscribeChannelEventsstill emitsCLOSED_CHANNELearly (#10794 restored that inv0.21.0), butMarkChannelClosedonly fires at full depth. PendingChannelsgainedblocks_til_close_confirmedandclose_heightonWaitingCloseChannel(#10509) so callers can track remaining confirmations.- Breaking:
MinCLTVDeltarose from 18 to 24. Invoices created with a customcltv_expiry_deltaof 18-23 are now rejected; the default of 80 is unaffected.
Components
lnd— daemon process.lncli— CLI client.tlsCert— auto-generated TLS for gRPC/REST.macaroons— capability tokens for API auth.- Backend options:
bitcoind(RPC + ZMQ),btcd(similar),Neutrino(BIP157/158 SPV).
Configuration
~/.lnd/lnd.conf:
[Application Options]
alias=mynode
listen=0.0.0.0:9735
externalip=mynode.onion:9735
tor.active=true
tor.v3=true
maxpendingchannels=10
debuglevel=info
[Bitcoin]
bitcoin.active=true
bitcoin.mainnet=true
bitcoin.node=bitcoind
[Bitcoind]
bitcoind.rpchost=127.0.0.1:8332
bitcoind.rpcuser=...
bitcoind.rpcpass=...
bitcoind.zmqpubrawblock=tcp://127.0.0.1:28332
bitcoind.zmqpubrawtx=tcp://127.0.0.1:28333
[Wtclient]
wtclient.active=true
Macaroons
Per-action capability tokens.
admin.macaroon— full access.readonly.macaroon— read-only.invoice.macaroon— generate invoices only.- Custom: bake via
lncli bakemacaroonwith specific permissions.
lncli bakemacaroon \
--save_to=/path/to/custom.macaroon \
uri:/lnrpc.Lightning/AddInvoice \
uri:/lnrpc.Lightning/LookupInvoice
API calls send macaroon as gRPC metadata macaroon: <hex> or HTTP
header Grpc-Metadata-macaroon: <hex>.
Treat macaroon files as hot keys
A macaroon file is bearer authority; admin.macaroon is enough to move
funds. Never let a front-end serve the .lnd directory.
BTCPay Server 2.4.2 (2026-08-07) fixed exactly this: all prior
versions, including the 2.4.2 release candidates, let an
unauthenticated remote attacker fetch .macaroon credential files for
the bundled LND node. BTCPay confirmed
Установить lightning-lnd в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobFAQ
Что делает скилл lightning-lnd?
LND (Lightning Network Daemon) by Lightning Labs: gRPC + REST API, macaroons, lncli, autopilot, channel backups (SCB), Tor support, watchtowers, integration with bitcoind/btcd/Neutrino backend. USE WHEN: integrating with LND, scripting lncli, debugging LND-specific issues, designing LND-based services.
Как установить скилл lightning-lnd?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lightning-lnd запускает скрипты?
Нет, скилл состоит только из инструкций (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