# Animica Chain Blocks Export

> Animica Chain Blocks Export is a paid API for AI agents from animica.dev, paid per call via x402, $0.002075/call, status unknown (last checked 2026-09-15).

Retrieves a paginated range of blocks (or transactions) from the Animica blockchain by height range or count

## Facts

- Endpoint: GET https://animica.dev/x402/chain/blocks
- Price: $0.002075/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/animica-chain-blocks-export-8128943f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HmXfXdAskzqRtXfbzu6ge

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 animica-chain-blocks-export-8128943f
```

Example prompt: Fetch me the blocks from height 1000 to 1500 on the Animica chain in JSON format so I can analyze the transaction history.

## When to prefer this

Use this endpoint when you need to retrieve raw block or transaction data from the Animica blockchain by height range. It is the correct choice for paginating through chain history, auditing ANM transfers for a specific address, or exporting bulk block data. Prefer this over generic blockchain explorers when working specifically with the ANM/Animica network.

## Known failure modes

- Window exceeds 1000 blocks — request rejected if (to - from) > 1000
- Missing required 'from' parameter — returns error
- Invalid address format (not bech32m or 32-byte hex) — returns error
- Block height out of range — returns empty result or error
- Payment not received (x402) — returns 402 Payment Required

## How this service works

Animica Python Cloud: deploy a Python function to animica.dev, get a public endpoint, and earn ANM every time someone runs it. Free AI (OpenAI-compatible, no key), free scheduled Workers, and an 80/20 developer split.

## Output

An ndjson stream (or JSON object if ?format=json) with a meta line, one record per block or transaction (amounts in nANM as decimal strings), and a summary line containing a next_cursor when the result is truncated for pagination. The JSON format wraps these as {meta, blocks|transactions, summary}.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "meta": {
   "type": "meta",
   "unit": "nANM",
   "export": "blocks",
   "product": "bulk_chain",
   "chain_id": 1,
   "to_height": 73602,
   "from_height": 73600,
   "head_height": 73635,
   "head_margin": 6
  },
  "blocks": [
   {
    "hash": "0x0000000001bb6415ee925b9648e93cf3f761371bd8524618f39dd174ea9d15dd",
    "nonce": 13769920589,
    "roots": {
     "daRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
     "txsRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
     "stateRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
     "proofsRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
     "receiptsRoot": "0x0000000000000000000000000000000000000000000000000000000000000000"
    },
    "height": 73600,
    "chain_id": 1,
    "timestamp": 1786769588,
    "parent_hash": "0x0000000003b8249bf50aad465a666250c02b096f331ba05ac6dda2e81efa9147",
    "theta_micro": 26004937,
    "transactions": []
   }
  ],
  "summary": {
   "txs": 0,
   "type": "summary",
   "blocks": 3,
   "complete": true,
   "next_cursor": null,
   "truncated_reason": null
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/animica-chain-blocks-export-8128943f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from animica.dev](https://www.zero.xyz/host/animica.dev/llms.txt)
