# P0 Agent Economy Index – EVM Block Lookup

> P0 Agent Economy Index – EVM Block Lookup is a paid API for AI agents from x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-20).

Fetches live block metadata (hash, gas, transactions, timestamp, base fee) for a specified block on a given EVM chain via a public node.

## Facts

- Endpoint: GET https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/evm/block?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/p0-agent-economy-index-evm-block-lookup-1c946d6f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2hNKwEW-fA7M6ybJplLi9

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability p0-agent-economy-index-evm-block-lookup-1c946d6f
```

Example prompt: What's the latest block on Base right now — give me the block number, hash, gas used, transaction count, and timestamp?

## When to prefer this

Choose this endpoint when you need real-time EVM block metadata (block number, hash, gas, fees, transaction count, timestamp) from a public node without needing cached, estimated, or USD-priced data. It is well-suited for monitoring chain liveness, verifying block finality, or extracting on-chain infrastructure signals. It covers Base, Ethereum, Arbitrum, Polygon, and Optimism. It does not provide token prices, account balances, or decoded transaction data.

## Known failure modes

- Node did not return a specific field — that field is null and listed in the errors array
- Invalid or unsupported chain name — request rejected or empty response
- Block number not found (e.g. future block or pruned) — may return nulls with errors
- Network timeout from the upstream public node — errors array populated
- Malformed block number format — request may fail or return errors

## How this service works

An open index of the machine-to-machine (agent) economy. x402 routes: ranked discovery over the live x402 service market, every indexed service scored by real 30-day calls and paying-wallet bounds, with a receipt naming the snapshot hash and scoring revision. /economy routes, for Tempo MPP, Virtuals ACP, Olas, Masumi, ERC-8004 agent registries, Solana agent registries, Base agent contracts and MCP servers (Official MCP Registry): each protocol's published figures (agent or server counts, transactions or payment events; payers and USD volume only where the source publishes them: payers for x402 and Tempo MPP, USD volume for x402 and Virtuals ACP), each with its unit, window and source; units differ, so totals are not summed. L402 and per-service MPP listings are not covered.

## Output

A JSON object containing: chain name and chain ID, block number and hash, Unix timestamp and UTC time string, gas used and gas limit (as strings), base fee per gas in wei, miner address, parent hash, block size in bytes, transaction count, the public node hostname that answered, a note clarifying no USD prices are used, the reply time in ISO 8601 UTC, and an errors array listing any fields the node did not return (null for those fields).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "chain": {
       "enum": [
        "ethereum",
        "base",
        "arbitrum",
        "polygon",
        "optimism"
       ],
       "type": "string",
       "default": "base",
       "description": "Chain; default base"
      },
      "number": {
       "type": "string",
       "default": "latest",
       "description": "Block number (decimal or 0x hex) or latest"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "chain",
      "chainId",
      "block",
      "as_of",
      "errors",
      "note",
      "number",
      "hash",
      "timestamp"
     ],
     "properties": {
      "hash": {
       "type": [
        "string",
        "null"
       ]
      },
      "note": {
       "type": "string",
       "description": "Fixed text: read from a public node, no USD prices"
      },
      "as_of": {
       "type": "string",
       "description": "ISO 8601 UTC time of the reply"
      },
      "block": {
       "type": [
        "integer",
        "null"
       ],
       "description": "Latest block at the node when it answered"
      },
      "chain": {
       "enum": [
        "ethereum",
        "base",
        "arbitrum",
        "polygon",
        "optimism"
       ],
       "type": "string",
       "description": "Chain key"
      },
      "miner": {
       "type": [
        "string",
        "null"
       ]
      },
      "errors": {
       "type": "array",
       "items": {
        "type": "string"
       },
       "description": "Calls or fields the node did not return"
      },
      "number": {
       "type": [
        "integer",
        "null"
       ]
      },
      "source": {
       "type": [
        "string",
        "null"
       ],
       "description": "Public node host that answered"
      },
      "chainId": {
       "type": "integer",
       "description": 
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hash": "0x3d6c0a1f8b9e2c4d5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f",
  "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.",
  "as_of": "2026-10-19T12:00:00.000Z",
  "block": 52207800,
  "chain": "base",
  "miner": "0x4200000000000000000000000000000000000011",
  "errors": [],
  "number": 52207800,
  "source": "base.drpc.org",
  "chainId": 8453,
  "gas_used": "21345678",
  "time_utc": "2026-10-19T12:00:00.000Z",
  "gas_limit": "140000000",
  "timestamp": 1792411200,
  "size_bytes": 48213,
  "parent_hash": "0x2c5b9f0e7a8d1b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c",
  "transactions": 211,
  "base_fee_per_gas_wei": "12345678"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/p0-agent-economy-index-evm-block-lookup-1c946d6f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev](https://www.zero.xyz/host/x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/llms.txt)
