decode_bolt11_invoice
Decode BOLT11 Lightning invoices to extract network, amount, and timestamp information for Bitcoin payment analysis.
Instructions
Decode a BOLT11 Lightning invoice without external dependencies.
Parses the human-readable part to extract network, amount, and timestamp. Does NOT verify the signature or parse tagged fields beyond basic extraction.
Args: invoice: BOLT11 payment request string (starts with lnbc, lntb, or lnbcrt)
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": "decode_bolt11_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |