nwc_lookup_invoice
Look up an invoice by payment hash or bolt11 string to retrieve its payment status, settled timestamp, amount, fees paid, and preimage if settled.
Instructions
Look up an invoice by payment hash or bolt11 string. Returns the invoice state (paid/unpaid), settled timestamp, amount, fees paid, and preimage if settled. Provide either payment_hash OR invoice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice | No | The bolt11 invoice string to look up (alternative to payment_hash). | |
| payment_hash | No | The payment hash of the invoice to look up. |