# Plainchain Block Data Endpoint

> Plainchain Block Data Endpoint is a paid API for AI agents from plainchain.appin60.com, paid per call via x402, $0.001042/call, status unknown (last checked 2026-10-14).

Returns the latest block metadata (hash, number, gas usage, transaction count, base fee, timestamp) for a specified EVM-compatible chain

## Facts

- Endpoint: GET https://plainchain.appin60.com/v1/block?utm_source=zero.xyz
- Price: $0.001042/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/plainchain-block-data-endpoint-e6527ecd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9O6sGs17k3kcZvpjHR-Gv

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 plainchain-block-data-endpoint-e6527ecd
```

Example prompt: What does the latest block on Base look like right now — block number, base fee, gas used, and how many transactions it has?

## When to prefer this

Choose this endpoint when an AI agent needs real-time EVM block metadata (block number, gas, base fee, transaction count) on Base, Arbitrum, Ethereum, or Optimism without managing API keys — paying $0.001 per call in USDC via x402 is ideal for autonomous agents with micro-payment wallets that need on-demand, pay-as-you-go chain data.

## Known failure modes

- Unsupported chain name or chain ID returns an error response
- Payment failure via x402 protocol results in 402 status with no data returned
- Chain RPC outage may cause stale or missing block data
- Malformed query parameter for chain results in validation error

## How this service works

Gas, balances, token data, address type, approvals, transaction decoding, x402 receipt verification and verifiable randomness on Base, Arbitrum, Ethereum and Optimism. No API key: pay $0.001-$0.01 per call in USDC on Base via x402.

## Output

A JSON object containing the latest block's hash, block number, chain name and chain ID, gas used, gas limit, transaction count, timestamp (ISO 8601), age in seconds, and base fee in gwei for the specified EVM chain.

## 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": {
      "chain": {
       "type": "string",
       "description": "base (default), arbitrum, ethereum or optimism; chain ids 8453, 42161, 1, 10 also work"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hash": "0x9c1e...",
  "chain": "Base",
  "number": 36581662,
  "chainId": 8453,
  "gasUsed": 61234567,
  "txCount": 212,
  "gasLimit": 300000000,
  "timestamp": "2026-10-13T08:40:01.000Z",
  "ageSeconds": 1,
  "baseFeeGwei": 0.005
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/plainchain-block-data-endpoint-e6527ecd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from plainchain.appin60.com](https://www.zero.xyz/host/plainchain.appin60.com/llms.txt)
