decode-offer
Decode a BOLT12 offer to retrieve its details, including the amount in millisatoshis.
Instructions
Decode an bolt12 offer the output amount is in milisatoshis
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": {
"offer": "<offer>"
},
"name": "decode-offer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offer | Yes | The bolt12 offer to decode |