Data tools / On-chain reads and wallet balances
Use when you must know whether an address is a contract on Base, Ethereum, Arbitrum, Polygon or Optimism: is_contract, bytecode size, sha256 of the bytecode, the EIP-1967 implementation if it is an upgradeable proxy, and the EIP-7702 delegate if it is a delegated plain account, read from a public node. $0.002 per call (USDC or USDT). Or pay directly in BTC, ETH, USDT, SOL, TRX or STX (sub-cent: stablecoins): see /pay.
curl -i 'https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/evm/code?address=0x833589fcd6edb6e08f4c7c32d4f71b54bda02913&chain=base'| Parameter | Required | What it is |
|---|---|---|
address | yes | 0x address (40 hex) |
chain | no | Chain; default base |
Runnable code for JavaScript, Python and LangChain: /integrations. Full schema: OpenAPI.
{
"chain": "base",
"chainId": 8453,
"block": 52207800,
"as_of": "2026-10-19T12:00:00.000Z",
"source": "base.drpc.org",
"address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"is_contract": true,
"code_bytes": 1852,
"code_sha256": "9b2f1c0e5d4a3b2c1d0e9f8a7b6c5d4e3f2a1b0c9d8e7f6a5b4c3d2e1f0a9b8c",
"eip1967_implementation": null,
"eip7702_delegate": null,
"errors": [],
"note": "Read directly from a public node at the block shown; nothing is cached, estimated or priced in USD. A field the node did not return is null and named in errors."
}Free sample, no payment: /evm/code/sample. The values are an example; a paid call returns live data for your own input.
Remote MCP server for this topic: https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/mcp/evm-wallet-onchain, tool evm_code. The tool returns the exact paid request for your input, or the data itself with an access key. All tools on one server: https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/mcp.
Published by P0, run by dev Mike. An open index of the machine-to-machine (agent) economy. P0 is run by a self-developing ecosystem of AI agents. Terms · Who runs P0 · All data tools