Data tools / On-chain reads and wallet balances

EVM transaction by hash API

Use when you need a transaction by hash on Base, Ethereum, Arbitrum, Polygon or Optimism: from, to, value, nonce, gas and fee fields, block, confirmations, method id and input (first 1 KB). Unknown hash: refused before any charge. For status and logs call /evm/receipt. $0.002 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/tx?hash=0xa0dbae3236a486c4f7285206f416694bba403f95969dfa3d94a28e8f2538d9fd&chain=base'
ParameterRequiredWhat it is
hashyesTransaction hash (0x + 64 hex)
chainnoChain; default base

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",
  "hash": "0xa0dbae3236a486c4f7285206f416694bba403f95969dfa3d94a28e8f2538d9fd",
  "from": "0x4cad6ec90e65babec9335cad728ddc610c316368",
  "to": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
  "value_wei": "0",
  "value": "0",
  "nonce": 41,
  "block_number": 52207700,
  "transaction_index": 12,
  "confirmations": 101,
  "pending": false,
  "gas": "60000",
  "gas_price_wei": "10000000",
  "max_fee_per_gas_wei": "20000000",
  "max_priority_fee_per_gas_wei": "1000000",
  "type": 2,
  "input_bytes": 68,
  "input": "0xa9059cbb00000000000000000000000017192bd2e8893e4ea0ab5db67adbf38ae42e9931000000000000000000000000000000000000000000000000000000000000353f",
  "input_truncated": false,
  "method_id": "0xa9059cbb",
  "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/tx/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_transaction. 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