# Base Blockchain Block Lookup

> Base Blockchain Block Lookup is a paid API for AI agents from tripguard-fare-intel.onrender.com, paid per call via x402, $0.12/call, status unknown (last checked 2026-10-11).

Retrieves block metadata (hash, number, gas used, timestamp, transaction count) for a specified block height on the Base blockchain, or the chain head if no block number is provided.

## Facts

- Endpoint: POST https://tripguard-fare-intel.onrender.com/chain/block?utm_source=zero.xyz
- Price: $0.12/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-blockchain-block-lookup-d88129d3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KEUhTv56qrxEVyPPwUG0r

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 base-blockchain-block-lookup-d88129d3 -d '<json body>'
```

Example prompt: Can you look up the block data for block 34567890 on the Base blockchain — I need the hash, timestamp, gas used, and how many transactions were in it?

## When to prefer this

Use this endpoint when you need lightweight, pay-per-call block metadata from the Base blockchain without managing an RPC node or API key. Prefer it for agent workflows that need on-demand block lookups (e.g. verifying timestamps, auditing gas, checking transaction volume) on Base specifically, rather than Ethereum mainnet or other chains.

## Known failure modes

- Block number does not yet exist on chain — returns an error or empty result
- Invalid block number format (non-integer or negative) — schema validation error
- Network or RPC node unavailability — service timeout or 5xx error
- Payment failure in USDC — 402 Payment Required response

## How this service works

Real-time airfare intelligence for AI travel-booking agents: flight price-drop prediction, fare-fraud and deal-legitimacy verification, and verified booking links for any route and date. Pay-per-call in USDC on Base. No API key.

## Output

Returns a JSON object containing the block hash, block number, gas used, ISO 8601 formatted timestamp, Unix timestamp, and transaction count for the requested block (or the chain head if no block number was specified).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "number": {
   "type": "integer",
   "minimum": 0,
   "description": "Block height. Omit for the chain head."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hash": "0xabababababababababababababababababababababababababababababababab",
  "number": 34567890,
  "gasUsed": "12345678",
  "iso8601": "2026-08-30T12:00:00.000Z",
  "timestamp": 1787750000,
  "transactions": 142
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-blockchain-block-lookup-d88129d3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tripguard-fare-intel.onrender.com](https://www.zero.xyz/host/tripguard-fare-intel.onrender.com/llms.txt)
