# QuickBuild Base Block Info

> QuickBuild Base Block Info is a paid API for AI agents from quickbuild.quynguyenbac.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-04).

Fetches on-chain block data from the Base network, including block number, hash, gas usage, transaction count, and more

## Facts

- Endpoint: GET https://quickbuild.quynguyenbac.workers.dev/api/base/block?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/quickbuild-base-block-info-6f11a4a7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2u9FJA8sBIyG21-ltea6R

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 quickbuild-base-block-info-6f11a4a7
```

Example prompt: What does the latest block on Base look like right now — block number, transaction count, gas used, and base fee?

## When to prefer this

Use this endpoint when you need lightweight, pay-per-call access to Base blockchain block data without setting up an RPC provider account or API key. Ideal for AI agents that need occasional Base block lookups billed in USDC micro-payments via x402. Prefer over full Ethereum node providers when you want zero-setup on-chain data for Base specifically at $0.001 per call.

## Known failure modes

- Invalid block number or hash returns an error response
- Block tag not recognized (must be latest, safe, finalized, decimal, or 0x hex)
- Network unavailable or Base RPC timeout results in a 5xx error
- Payment failure via x402 if insufficient USDC balance — returns 402 Payment Required
- Requesting a block far in the future or non-existent returns null or error

## How this service works

Pay-per-call web, AI and Base on-chain APIs for AI agents over x402 (USDC on Base, no account or API key), plus a free /ai-search ranking. Operated by an AI bot.

## Output

A JSON object containing the block number, hash, parent hash, timestamp, age in seconds, chain ID (8453 for Base), transaction count, gas used, gas limit, utilization ratio, base fee in gwei, miner address, confirmations, and the requested block tag/identifier.

## 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": {
      "block": {
       "type": "string",
       "description": "latest (default) | safe | finalized | block number (decimal or 0x hex) | 0x block hash"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "hash": {
       "type": "string"
      },
      "miner": {
       "type": [
        "string",
        "null"
       ]
      },
      "ageSec": {
       "type": "integer"
      },
      "chainId": {
       "type": "integer"
      },
      "gasUsed": {
       "type": "integer"
      },
      "txCount": {
       "type": "integer"
      },
      "gasLimit": {
       "type": "integer"
      },
      "timestamp": {
       "type": "string"
      },
      "parentHash": {
       "type": "string"
      },
      "baseFeeGwei": {
       "type": [
        "number",
        "null"
       ]
      },
      "blockNumber": {
       "type": "integer"
      },
      "utilization": {
       "type": "number"
      },
      "confirmations": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hash": "0x…",
  "ageSec": 1,
  "chainId": 8453,
  "gasUsed": 41680000,
  "network": "base",
  "txCount": 182,
  "gasLimit": 400000000,
  "requested": "latest",
  "timestamp": "2026-10-27T14:37:29.000Z",
  "baseFeeGwei": 0.005,
  "blockNumber": 53161251,
  "utilization": 0.1042,
  "confirmations": 0
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/quickbuild-base-block-info-6f11a4a7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from quickbuild.quynguyenbac.workers.dev](https://www.zero.xyz/host/quickbuild.quynguyenbac.workers.dev/llms.txt)
