l402_pay
Access L402-protected URLs by automatically paying Lightning invoices, checking cached tokens first to avoid duplicate payments and returning the protected resource response.
Instructions
Access an L402-protected URL by automatically paying the Lightning invoice. Checks the token cache first to avoid re-paying. Returns the response data from the protected resource after successful payment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to access (will pay L402 if required) | |
| force | No | If true, ignore cached tokens and pay again | |
| method | No | HTTP method for the resource request | GET |
| dry_run | No | If true, discover the price without actually paying | |
| wallet_id | Yes | Blink BTC wallet ID to pay from | |
| max_amount_sats | No | Maximum amount in sats to pay (safety limit). Aborts if price exceeds this. |