ln_decode
Decode a BOLT11 Lightning invoice: payment hash, destination public key, amount in sats when present, timestamp, expiry, and description or description-hash presence. Decoding is fully local to the API; malformed invoices return a clean error. Price: $0.002 USDC on Base via x402.
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": "ln_decode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice | Yes | BOLT11 payment request (lnbc... mainnet or lntb... testnet). |