Decode a Lightning invoice
lightning_decode_invoiceDecode a Lightning BOLT11 invoice: amount, description, payee node, payment hash, creation and expiry time, whether it has expired, route hints. Paid per call. Price: 2 sats or US$0.002 (USDC) per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| l402 | No | Optional. After paying the Lightning invoice: '<token>:<preimage>'. | |
| invoice | Yes | A Lightning BOLT11 invoice (lnbc...) | |
| pay_with | No | Optional. 'lightning' returns a BOLT11 invoice and a token instead of the x402 payment request. |