pay_l402_challenge
Pay Lightning invoices to obtain L402 or MPP authorization tokens for API access and transactions.
Instructions
Manually pay an L402 or MPP invoice and receive the authorization token. Use this if you need to handle the L402/MPP flow yourself. Omit macaroon for MPP (Machine Payments Protocol) mode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice | Yes | BOLT11 Lightning invoice string | |
| macaroon | No | Base64-encoded macaroon from the L402 challenge. Omit for MPP mode (preimage-only authentication). | |
| max_sats | No | Maximum satoshis allowed for this payment |