Data tools / On-chain reads and wallet balances

EVM block header API

Use when you need a block header on Base, Ethereum, Arbitrum, Polygon or Optimism: latest or a given number, with hash, parent, timestamp, miner, gas used/limit, base fee and transaction count from a public node. $0.001 per call (USDC or USDT). Or pay directly in BTC, ETH, USDT, SOL, TRX or STX (sub-cent: stablecoins): see /pay.

Price and access

Request

curl -i 'https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/evm/block?chain=base&number=latest'
ParameterRequiredWhat it is
chainnoChain; default base
numbernoBlock number (decimal or 0x hex) or latest

Runnable code for JavaScript, Python and LangChain: /integrations. Full schema: OpenAPI.

Example answer

{
  "chain": "base",
  "chainId": 8453,
  "block": 52207800,
  "as_of": "2026-10-19T12:00:00.000Z",
  "source": "base.drpc.org",
  "number": 52207800,
  "hash": "0x3d6c0a1f8b9e2c4d5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f",
  "parent_hash": "0x2c5b9f0e7a8d1b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c",
  "timestamp": 1792411200,
  "time_utc": "2026-10-19T12:00:00.000Z",
  "miner": "0x4200000000000000000000000000000000000011",
  "gas_used": "21345678",
  "gas_limit": "140000000",
  "base_fee_per_gas_wei": "12345678",
  "transactions": 211,
  "size_bytes": 48213,
  "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/block/sample. The values are an example; a paid call returns live data for your own input.

Use it from an AI assistant (MCP)

Remote MCP server for this topic: https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/mcp/evm-wallet-onchain, tool evm_block. 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.

Related tools

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