# BRAINIAC.software Chain Data — Latest Block

> BRAINIAC.software Chain Data — Latest Block is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-11).

Fetches the latest block data from a blockchain via a pay-per-call x402 API requiring no account

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/chain-data/block/latest?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-software-chain-data-latest-block-0e30152f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QIr9EIYq4fca1w0JjOBmJ

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 brainiac-software-chain-data-latest-block-0e30152f -d '<json body>'
```

Example prompt: What is the latest block on the blockchain right now? Use BRAINIAC's chain data API to fetch the most recent block details.

## When to prefer this

Choose this endpoint when you need the latest block data from a blockchain without setting up an account or managing API keys — ideal for one-off agent queries or pay-as-you-go workflows using x402 on Base. It is especially useful when you need current block height or hash as a lightweight on-chain reference point and want to avoid subscription overhead.

## Known failure modes

- Payment failure — if the x402 USDC payment on Base is not completed or is underpaid, the API will not return data
- Network unavailability — if the underlying blockchain node is unreachable, the response may be an error or empty
- Empty response schema — the documented response example is empty {}, so the exact fields returned are not guaranteed by the schema
- Malformed request body — the body must be a valid JSON object matching the input schema
- Rate limiting or chain congestion may delay or fail responses

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

A JSON object containing the latest block's data, which likely includes block number (height), block hash, timestamp, and potentially transaction count or other block-level metadata from the queried blockchain.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "properties": {},
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "block": {
       "type": "object",
       "properties": {
        "hash": {
         "type": "string"
        },
        "miner": {
         "type": "string"
        },
        "nonce": {
         "type": "string"
        },
        "number": {
         "type": "number"
        },
        "uncles": {
         "type": "array",
         "items": {}
        },
        "gasUsed": {
         "type": "number"
        },
        "gasLimit": {
         "type": "number"
        },
        "extraData": {
         "type": "string"
        },
        "logsBloom": {
         "type": "string"
        },
        "stateRoot": {
         "type": "string"
        },
        "timestamp": {
         "type": "number"
        },
        "difficulty": {
         "type": "number"
        },
        "parentHash": {
         "type": "string"
        },
        "sha3Uncles": {
         "type": "string"
        },
        "receiptsRoot": {
         "type": "string"
        },
        "transactions": {
         "type": "array",
         "items": {
          "type": "string"
         }
        },
        "baseFeePerGas": {
         "type": "number"
        },
        "transactionsRoot": {
         "type": "string"
        }
       },
       "additionalProperties": true
      },
      "source": {
       "type": "object",
       "properties": {
        "url": {
         "type": "string"
        },
        "status": {
         "type": "string"
        }
       },
       "additionalProperties": true
      },
      "chainId": {
       "type": "number"
      },
      "retrievedAt": {
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "block": {
   "hash": "0xd01a2e8fbed754d170ba5c0b0be2e6cad26ad8d77fbdcb1db4d4ff2ecf14ee02",
   "miner": "0x4200000000000000000000000000000000000011",
   "nonce": "0x0000000000000000",
   "number": 54314815,
   "uncles": [],
   "gasUsed": 2967355,
   "gasLimit": 40000000,
   "extraData": "0x01000003e80000000500000000004c4b40",
   "logsBloom": "0x1020040000083841f0000000060004002048002060283004203604c001200000202801101144c0000106029180a6d01001500801440400000b21038180a0a1040400001020402000108008088400840810000000004811a040106000a0080100008100118a000040020000005000080036085208101504000000801000004610052004da01084000b001a484020000000000800184281840501404842001010002400580208000000a480120000220063918800002110008409702400019018208000503400015450a11026000080000008a22a05400200021022202100020a0011018000406010028400018404480002480041322a0026137a1055004000800",
   "stateRoot": "0xb1a4ecd349aee85eca57ad6fbf74bc7da5312f820b7afa0dafb9043c02c0acd6",
   "timestamp": 1794053338,
   "difficulty": 0,
   "parentHash": "0x88745af9ea7287c6636abaa68c1068bfb5eef923b3a3d158c3ad160d567c564e",
   "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
   "receiptsRoot": "0x917f79e3e801136bb240194dfab23553f4caa987703712fffeb59e19efd0ffe6",
   "transactions": [
    "0xa504daa1738d124470309fe560760ea0aafb15e5ddfa4993de7d17c35ee314d4",
    "0x9b71cd9fe39b81f739a401e62326fac16fceb540506637c65eadf28bb275c21f",
    "0x795aeaeae8117091227c746d50635defd35f81ceb56bd9c2176168efa88592fa",
    "0x7b9606ba12f1a735f95dafe70708b9af2a76e0959000f4e396caf4f325d76b0a",
    "0xd5b6668f08b6b643f9cd7b82006ba420d002f6a15cce93be60b8b31c583e57c7",
    "0xce2c09abde60697cb8d57c2ea85f1519bbcf250396ee089f9a0347cf43fe5b46",
    "0xdb939dc27be3729931dde772a35693f9e1ef56dd6ac2333b8f3a7a379ce40b27",
    "0x29a3cb00658774e6d41fe1974f274b33a3fec804fdf8253676fecd92dd66131c",
    "0x737ab2bea8c15e20111a95cb06c86e7c56e7ed383ceee272176ee0a18146a1c6",
    "0x73770107c9e69e1a099739d1fc5ae2ecfe8076bee50fbdd6191edd09d4d268db",
    "0xa99c2746b9e70bfbc207e60eef2c12ef55a05affec3332c7f04d2465480ecd4c",
    "0xc3dbd93f307830a5ba10bcd36f3fb18040bd4d718ebf48f0f4012fafebe6537a",
    "0x18ca90986beada20027359334a79e629ba9290f9a0ecda3593ebc33a6d28cb3c",
    "0xb758466b07076787d5c394f605243c63550e34ece71d789c0d34979135cd5946",
    "0xafb871d915d66eabf5bd84816ea672740f333d2ac52d57fd858b2e0caef5bea5",
    "0x22a3a6e29ad137c05070ebffd45490614a40aaa7eec2e0968066e17f8f1858b4",
 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-software-chain-data-latest-block-0e30152f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
