Directory / Crypto & onchain data
Simulate a read-only Ethereum contract call via eth_call
Simulate a read-only Ethereum contract call via eth_call - no transaction sent
402 OKBasePOSTx402 v2
- Price per call
- $0.005
- Endpoint
- https://api.onesource.io/api/chain/call
- Provider
- api.onesource.io
- Paid calls (30 days)
- 261
- Unique payers (30 days)
- 258
- Last paid call
- 32 h ago
- Health check
- HTTP 402 4 min ago
- Pays to
- 0x52E29e0d2Aa49bfBfC548C0A9F2196F4aa51f3ea
- Listed here since
- 2026-11-23 (source: bazaar)
Input
{
"body": {
"data": "0x00",
"to": "0xdac17f958d2ee523a2206206994597c13d831ec7"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Example output
{
"example": {
"data": {
"result": "0x000000000000000000000000000000000000000000000000000000000000002a"
},
"meta": {
"cost_usdc": "0.001",
"endpoint": "/api/chain/call",
"payment_chain": "base",
"payment_token": "USDC",
"request_id": "00000000abcdef01"
}
},
"type": "json"
}
Call it from an agent
import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.AGENT_PRIVATE_KEY);
const paidFetch = wrapFetchWithPayment(fetch, account);
const res = await paidFetch("https://api.onesource.io/api/chain/call", { method: "POST" });
console.log(await res.json()); // costs $0.005 in USDC on Base
Machine-readable: /api/tools/efd2c6d22443. Listings are informational; check a provider before sending large amounts.