Decode a BOLT11 Lightning invoice (dev tool)
bolt11_decodeDecode a PUBLIC BOLT11 Lightning invoice (lnbc…): bech32 (BIP173) + tagged fields + the payee pubkey RECOVERED from the signature. Returns network, currency, timestamp, recovered_payee, amount_msat/amount_raw, payment_hash, description(_hash), payment_secret, payee_pubkey, features, fallback, expiry, min_final_cltv_expiry, routing_hints, signature and recovery_id. Reads only the invoice string — holds no key, verifies no channel, pays nothing. Pure, offline computation (blocktools); nothing is fetched or stored. How to combine this with the other tools: swapchan_playbook (workflows: find-money, best-swap, rebalance, revoke-approvals, bridge-stuck, token-safety, recover-old-wallet).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"invoice": "<invoice>"
},
"name": "bolt11_decode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice | Yes |