circle_x402_pay
Pay x402-priced HTTP endpoints using USDC from a Circle wallet. Automatically negotiates price, pays atomically, and returns the response body.
Instructions
Pay an x402-priced HTTP endpoint using USDC from a Circle wallet, then return the response body. The server negotiates price, pays atomically, and fetches the content in one step. Use max_price_usdc as a safety cap — the call fails if the endpoint quotes higher.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet_id | Yes | Circle wallet ID to pay from | |
| endpoint_url | Yes | The x402-priced HTTP endpoint URL to call | |
| max_price_usdc | Yes | Refuse if the endpoint quotes more than this price in USDC | |
| method | No | HTTP method for the paid request | GET |
| body | No | Request body for POST calls (JSON string) |