# Agent Data Tools: Base Latest Block

> Agent Data Tools: Base Latest Block is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-19).

Retrieves the latest block data from the Base blockchain, including block hash, number, miner, gas stats, timestamp, and transaction count

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/base/block?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-base-latest-block-90987ce6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_B3VvBZNVL9XqNrx_vJqpo

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 agent-data-tools-base-latest-block-90987ce6
```

Example prompt: What's the latest block on the Base network — give me the block number, timestamp, gas used, and base fee?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call read of the latest Base block without setting up an RPC node or API key. Ideal for AI agents needing real-time chain head data on Base at $0.001/call with no account setup. Prefer over self-hosted RPC for lightweight, low-frequency polling or one-off checks.

## Known failure modes

- Network timeout if Base RPC is temporarily unreachable
- Payment failure if USDC balance is insufficient (call not charged)
- Rate limiting if the underlying RPC node is saturated
- Malformed response if Base network is undergoing an upgrade or hard fork

## How this service works

Latest block number and block details on Base, or any block by decimal number: hash, timestamp, transaction count, gas used and limit, base fee in gwei and producer. Use for timestamps and confirmation counts; for current fees use base_gas. A block that does not exist yet returns 404, uncharged.

## Output

Returns a JSON object with the latest Base block's hash, chain name, miner address, block number, chain ID (8453), gas used, gas limit, ISO timestamp, base fee in gwei, and transaction count.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "number": {
       "type": "string",
       "examples": [
        "latest"
       ],
       "description": "Block number, or 'latest' (default)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "hash": {
       "type": "string"
      },
      "chain": {
       "type": "string"
      },
      "miner": {
       "type": "string"
      },
      "number": {
       "type": "number"
      },
      "chainId": {
       "type": "number"
      },
      "gasUsed": {
       "type": "string"
      },
      "gasLimit": {
       "type": "string"
      },
      "timestamp": {
       "type": "string"
      },
      "baseFeeGwei": {
       "type": "string"
      },
      "transactions": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hash": "0xabc…",
  "chain": "Base",
  "miner": "0x…",
  "number": 123456789,
  "chainId": 8453,
  "gasUsed": "21000000",
  "gasLimit": "30000000",
  "timestamp": "2026-10-18T12:00:00.000Z",
  "baseFeeGwei": "0.012",
  "transactions": 154
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-base-latest-block-90987ce6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
