Indexer API

Every route the public indexer exposes, with its real response shape.

Docs / Reference / Indexer API

The public data API at https://api.aere.network serves recent blocks, recent transactions (it scans the last 300 blocks), a block by number, a transaction by hash, and for an address its balance, nonce and code together with its most recent transactions as the explorer's index records them (at most 50), so you do not have to scan blocks over RPC. Full, paged transfer history for an address is on Aere Cloud, /v1/data/transfers, with a key. (Corrected 2026-11-22: from that day /api/address carries the recent transactions of the address, and this paragraph said the API keeps no history of an address; on 2026-10-27 it had corrected a claim that the API served indexed history.)

Routes

RouteReturns
/api/statschainId, block, timestamp, gasPriceWei, baseFeeWei; and, when the index answered, indexedTo (the last block the explorer's index has read)
/api/blocks?limit=N{ chainId, blocks: [...] }, newest first
/api/block/{number}One block, fields at the top level, plus transactions
/api/transactions?limit=N{ chainId, scanned_back, transactions: [...] }
/api/tx/{hash}One transaction
/api/address/{address}?limit=Naddress, balanceWei, nonce, isContract, codeSize; and, when the index answered, transactions (newest first, N from 1 to 50, default 25) with history: "indexer" and historyIndexedTo (the list is complete up to that block)

A request to an unknown route returns 404 with a JSON body that lists the routes above, so the API describes itself.

An /api/address response without a transactions field means the index did not answer in time, not that the address has no transactions: the balance and the nonce are read live from the chain either way, and the nonce is the count of transactions the address has sent.

A list is only as recent as the index behind it: historyIndexedTo is the last block the index had read when it answered, and /api/stats puts indexedTo next to block, the chain head. A transaction newer than historyIndexedTo is not in the list yet; ask for it by hash (/api/tx/{hash}), which is read live from the chain.

The field naming is not uniform, and you must not assume

This is the part that costs an afternoon if you assume. The shapes differ by route:

RouteField style
/api/blocks itemscamelCase: gasUsed, gasLimit, baseFeePerGas, txCount, parentHash
/api/block/{n}camelCase, at the top level, with no wrapper object
/api/block/{n} → transactions itemsfrom, to, valueWei, block, gas, gasPriceWei
/api/transactions itemssnake_case: block_number, from_addr, to_addr, gas_limit, gas_price
/api/address/{a}camelCase: balanceWei, isContract, codeSize; its transactions items are snake_case: hash, block_number, from_addr, to_addr, value, gas_limit
In JavaScript a missing field is not an error, it is undefined, and a formatter turns that into a convincing 0. Reading tx_count where this API returns txCount yields zero for every block; expecting a block wrapper on /api/block/{n}, where the fields are at the top level, yields "not found" for blocks that exist. Neither throws, and the request returns 200. Check the shape against a real response before you trust a number.

Examples

curl -s https://api.aere.network/api/stats

curl -s https://api.aere.network/api/blocks?limit=2

curl -s https://api.aere.network/api/block/17389117

The miner field is an id from block 20,836,228

From block 20,836,228 (AIP-22 stage 3) the validator set is named by post-quantum validator ids, and miner on /api/blocks and /api/block/{n} carries the proposer's id, not an ECDSA address: it will not match any account you derive from a secp256k1 key. The same ids come back from qbft_getValidatorsByBlockNumber. Each id is bound to its validator's address in the published registry epoch, https://aere.network/pq/manifests/registry-v3-20836228.json. Below that height miner is the proposer's ECDSA address, as before. Checked on 2026-10-15: the miner of the newest block was one of the ten ids in the live set.

What it does not have

There is no token-transfers route and no total-transaction count. If a route is not in the list the API returns on a 404, it does not exist, and a client should not call it hopefully: an endpoint that answers 404 on every call is not a feature that is coming, it is noise in someone's console.

Which to use when

  • Live chain state, calls, sending transactions: the JSON-RPC endpoints.
  • History for an address: the most recent 50 transactions here (/api/address/{a}?limit=50); the full, paged history on Aere Cloud, /v1/data/transfers, with a key. Recent blocks and transactions: this API (corrected 2026-11-22: this line said this API keeps no history of an address; on 2026-10-27 it had corrected a line that sent history for an address or a range to this API).
  • Anything you intend to rely on cryptographically: your own node, and eth_getProof.