pay_invoice
Pay BOLT11 Lightning invoices and receive the preimage as proof. If payment is pending, don't retry; check transaction status instead.
Instructions
Pay a BOLT11 Lightning invoice. Returns the preimage as proof of payment. Works with an operator key (pays from the operator wallet; a default agent is provisioned automatically) or an agent key. If the response says pending:true the payment is still in flight: do NOT retry, check get_transactions instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bolt11 | Yes | BOLT11 invoice string to pay (starts with lnbc...) | |
| max_fee_sats | No | Maximum routing fee in satoshis (backend default: 100 for agent keys, 10 for operator keys; unused reserve is refunded) |