pay_l402_api
Make paid API requests with automatic payment via L402 (Lightning) or X402 (USDC) protocols. Detects HTTP 402 and settles payment. Requires agent key.
Instructions
Make a request to a paid API. Supports L402 (Lightning) and X402 (USDC on Base) protocols. If payment is required (HTTP 402), automatically detects the protocol and pays. L402 is preferred when both are available. REQUIRES AGENT KEY.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to request | |
| method | No | HTTP method | GET |
| body | No | Request body for POST/PUT requests | |
| max_payment_sats | No | Maximum amount in satoshis to pay for this request |