x402_fetch
Fetch free or x402-paid HTTP endpoints while enforcing deterministic spending caps and automatic EIP-3009 payment authorization on Base L2.
Instructions
Safely fetch free or x402-paid HTTP endpoints with deterministic spending caps and automatic EIP-3009 payment authorization on Base L2.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "x402_fetch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Target endpoint URL (e.g., https://api.weather.com/v1/forecast or paid x402 resource) | |
| body | No | Optional HTTP request body (e.g., JSON string) | |
| method | No | HTTP method (default: GET) | GET |
| headers | No | Optional custom HTTP headers |