cancel_invoice
Cancel an unpaid Lightning invoice by providing the wallet ID and payment hash, voiding pending payments that are no longer required.
Instructions
Cancel an unpaid Lightning invoice
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": {
"wallet_id": "<wallet_id>",
"payment_hash": "<payment_hash>"
},
"name": "cancel_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet_id | Yes | The wallet ID the invoice belongs to | |
| payment_hash | Yes | The payment hash of the invoice to cancel |