nwc_pay_invoice
Pay a bolt11 Lightning invoice after local decoding and safety checks. Supports amountless invoices with an amount override and returns the preimage and fees.
Instructions
Pay a bolt11 Lightning invoice. Decodes locally, runs the safety pipeline (read-only gate, destination allowlist, budget cap), and either executes immediately or — if NWC_REQUIRE_CONFIRM=true — returns a one-time confirmation token to pass to nwc_confirm_payment. Returns preimage + fees on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice | Yes | The bolt11 invoice to pay (lnbc...). | |
| amount_override_sats | No | Amount in sats — required for amountless invoices; rejected if the invoice already encodes an amount. |