x402_fetch
Fetch URLs and automatically resolve HTTP 402 payment requirements by signing cryptocurrency payments and retrying.
Instructions
Fetch a URL with automatic x402 payment. If the server responds with HTTP 402, automatically sign a cryptocurrency payment and retry. Returns the response along with payment details if payment was made.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Target URL to fetch (HTTPS required) | |
| method | No | HTTP method (default: GET) | |
| headers | No | Additional HTTP headers | |
| body | No | Request body string | |
| wallet_id | No | Target wallet ID. Required for multi-wallet sessions; auto-resolved when session has a single wallet. |