# ChainRay Block Info

> ChainRay Block Info is a paid API for AI agents from chainray.online, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Retrieves detailed blockchain block metadata including height, timestamp, transaction count, miner address, gas usage, and proof data for a specified chain.

## Facts

- Endpoint: GET https://chainray.online/block-info
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainray-online-23409879
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7g4fmOvSaKdJ-AHm3XMTx

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 chainray-online-23409879
```

Example prompt: Can you pull the latest block info for the Ethereum chain — I want to see the block number, timestamp, miner address, transaction count, and gas usage?

## When to prefer this

Use this endpoint when you need real-time or near-real-time block metadata from a supported EVM chain (e.g., Base, Ethereum, Polygon) including miner info, gas stats, and cryptographic proof. Prefer this over raw RPC calls when you want a pre-parsed, proof-attested response without managing your own node or RPC provider.

## Known failure modes

- Unsupported chain name returns an error or empty response
- Missing 'chain' query parameter may default to a chain or return an error
- Payment failure (402) if USDC balance is insufficient
- Network timeout if the blockchain RPC is slow
- Invalid chain identifier returns a 400 or descriptive error

## How this service works

The most complete blockchain data and intelligence service for AI agents. 93 endpoints across 46 chains, from gas fees to DeFi analytics, with real-time streams, intent routing, and verifiable proofs. Pay-per-request via x402.

## Output

Returns a JSON object containing the block hash, block number, timestamp (Unix and ISO), miner address, gas used, gas limit, base fee per gas, parent hash, block size, transaction count, and a cryptographic proof object with chain name, data hash, and proof version.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "chain": "ethereum"
  }
 }
}
```

## 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",
     "properties": {
      "chain": {
       "type": "string",
       "description": "Blockchain network (e.g., base, ethereum, polygon)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainray-online-23409879/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chainray.online](https://www.zero.xyz/host/chainray.online/llms.txt)
