Skip to content

Indexer API

Base URL: https://rpc.testnet.16ane.net/indexer. The indexer follows the chain block by block and records which addresses took part in each transaction, and how. The explorer’s address pages use it. Errors are {"error": "<code>", "message": "..."} (bad_address, bad_limit, bad_cursor).

Request Answer
GET /v1/status chain_id, indexed_block, head_block, behind
GET /v1/address/<addr>/summary tx_count, first_block, last_block, indexed_block
GET /v1/address/<addr>/txs?limit=25&before=<block>:<index> items (newest first) and next, a cursor for the following page, or null

Each item is {hash, block, tx_index, timestamp, roles}. limit is 1 to 100. roles says how the address took part:

Role Meaning
from, to Sent the transaction, or was its target
created A contract the transaction created
internal_from, internal_to Sent or received ANE inside the transaction (a call with value)
token_from, token_to Sent or received tokens (an ERC-20 or ERC-721 Transfer)
Terminal window
curl -sS 'https://rpc.testnet.16ane.net/indexer/v1/address/0xdac2f63d58d6b1313cf615693f5b5754081527be/txs?limit=5'

The indexer handles chain reorganisations and testnet resets itself. To page, pass the previous response’s next as before.