create_l402_challenge
Generate Lightning Network payment challenges to charge for resource access using the L402 protocol. Creates invoices and macaroons for automated transactions between agents.
Instructions
Create an L402 payment challenge to charge another agent or user for accessing a resource. Returns a Lightning invoice and macaroon. The payer must pay the invoice and present the L402 token (macaroon:preimage) back to you for verification. Requires LIGHTNING_ENABLE_API_KEY with an Agentic Commerce subscription.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resource | Yes | Resource identifier - URL, service name, or description of what you're charging for | |
| price_sats | Yes | Price in satoshis to charge | |
| description | No | Description shown on the Lightning invoice |