l402_challenge_create
Create an L402 payment challenge with a Lightning invoice and signed macaroon to protect resources behind a paywall. Returns a WWW-Authenticate header for HTTP 402 responses.
Instructions
Create an L402 payment challenge (invoice + signed macaroon) to protect a resource behind a Lightning paywall. Returns a WWW-Authenticate header that can be sent to clients with HTTP 402.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memo | No | ||
| resource | No | ||
| wallet_id | No | ||
| amount_sats | Yes | Invoice amount in satoshis | |
| expiry_seconds | No |