Skip to content
Indexer Access

Robinhood Chain Indexer Read API

URL shape, the behaviour every route shares, and the route groups. Pagination, snapshots, precision and absence are documented once rather than per endpoint.

Chain-scoped routes:

GET /index/v1/{chain}/{path}

Example: /tokens/{address} is served at /index/v1/robinhood/tokens/{address}. The production host is https://rh-indexer.scanner.net:

curl https://rh-indexer.scanner.net/index/v1/robinhood/tokens/<token-address> \
  -H "x-api-key: <your key>"

Authentication and limits

Protected routes take x-api-key with the route class's scope. A missing or unknown key gets 401; a valid key without the scope gets an uncharged 403 insufficient_scope. GET /health, GET /health/live and GET /health/ready are public; every other route needs a key, including /index/v1/robinhood/health. Prometheus GET /metrics is only on the separate loopback listener.

Two kinds of key work:

  • Scanner API key. An sk_live_ API key on a Scale or Enterprise plan, in x-api-key or as Authorization: Bearer sk_live_.... Create it on the API page. Scale includes the health, explorer, markets, wallets and launchpads routes; Enterprise adds cohorts.
  • Indexer key. Stream, live RPC and add-on routes need a key the Scanner team issues by hand: email payments@scanner.net with the routes you need, or ask in your Telegram channel if you have one.

An sk_live_ key only works where the deployment has Scanner key verification on; elsewhere it gets 401. The indexer checks each new key with Scanner (and again every few seconds), grants the scopes its plan includes, narrowed by the key's Indexer endpoint groups, and applies the key's per-minute limit as one budget across every route. Such a key never gets stream, RPC or add-on routes. A key with an IP allowlist gets 403 ip_allowlist_unsupported, because the indexer can't see the caller's real IP.

Per-key route limits refill continuously. Limited responses include RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset; 429 rate_limited adds Retry-After. Unlimited route classes omit these headers.

Streams have a separate active-connection ceiling. Exceeding it returns 429 rate_limited without Retry-After; close a connection. Multiplex topics through /stream/subscribe.

Shared contract

Snapshots

List responses carry the head they were read at as canonicalHead and canonicalHash; every row on the page was read at that block. Single-record block and transaction routes describe the record's own block instead and carry neither: /blocks/{n}, /blocks/{n}/logs and its /decoded, /blocks/{n}/transactions, /blocks/by-hash/{h}, and /transactions/{h} with its /receipt, /decoded, /logs, /logs/decoded and /calls/decoded.

A paginated walk doesn't keep one anchor. Each page is read, and its cursor minted, at the current head, so page two can show a newer canonicalHead than page one. A newer head alone never ends a walk. 409 stale_cursor means the cursor's block was reorged away, or the data behind the walk was rebuilt while you paged (for example /cohorts?token= after a new funding derivation, or wallet activity after its projection was rebuilt). Restart from page one.

Some lists are sorted by a value that keeps changing: /tokens/{address}/holders, /tokens/{address}/traders, wallet assets, and the cohort lists (/cohorts/{id}/members, /cohorts/{id}/edges, /wallets/{address}/cohorts). Each page is sorted when you ask for it, so a wallet that moves between requests can be missed or seen twice:

  • De-duplicate rows by wallet or cohort id.
  • Fetch pages back to back.
  • Don't treat a full walk as an exact export; ask for a larger limit so one page covers what you need.

Rankings, the screener and search pin one block for the whole walk and report it as rankedAtBlock or pinnedAtBlock. /pools/search in its default sort=pool_identity order also keeps page one's block, so its canonicalHead stays the same across a walk; with sort=volume_24h each page is ranked at the current head.

Cursors are fork-bound

Cursors bind chain, order, snapshot. Fork removal expires cursors; no timer. Anchor-invalidating reorgs return typed errors.

Failing closed

Building/disabled/stale projections return typed refusals.

Pagination bounds

Paginated routes accept cursor, order, limit. Pages stop at the first bound and report which bound stopped them, distinguishing exhaustion from size limits.

BoundMaximum
Rows1000
Rows with USD siblings200
Rows requiring separate marks100
Serialized response4 MiB

Numeric precision

Exact amounts, balances, supplies, and volumes use full-width base-unit integers encoded as JSON strings. Parse with BigInt/decimal libraries, never Number.

const rawBalance = BigInt(holder.balance);

Route fields specify token/quote base units, basis points, fixed scales, or rational pairs. Numeric strings do not imply token decimals. Approximate values identify themselves; see derivation rules.

Absence

Null includes a reason and never means zero. See What it stores.

Error envelope

Framework and handler errors share:

{"error":"bad_request","detail":"human-readable explanation"}
StatusMeaning/action
400Malformed input, including unknown query parameters
401/403Authentication/scope failure
404Subject absent at anchor, or unknown chain
409Fork-invalid cursor or inadmissible quote
422Wrong JSON shape or overly broad query
429Rate limit; retry after Retry-After when provided
503Unavailable/incomplete projection; bounded exponential backoff with jitter

One exception to the 404 rule: /cohorts/{id}, /cohorts/{id}/members and /cohorts/{id}/edges answer 200 for an unknown id, with found: false or cohortFound: false, because the cohort may not be derived yet. See Cohorts.

Retry only a 429 (after Retry-After) and a 503 (bounded exponential backoff with jitter). Restart 409 stale_cursor walks from page one. 409 quote_not_admitted isn't retryable: reissue with an admissible quote. Every other status needs a change to the request, the key or its scope.

Route groups

115 routes, validated against service registration and published schemas/guarantees. Undocumented registered routes fail validation. Volatile block/metric samples are excluded.

GroupRoutesCovers
Tokens31Catalogue, search, detail, holders, transfers, swaps, traders, stats, ticks, candles, market cap, all-time high and low, liquidity, venue resolution, authority events, launches
Pools20Identity, swaps, ticks and bars, candles, stats, liquidity, extremes, and the V4 set keyed by manager and pool id
Wallets18Assets, portfolio, positions, PnL and daily PnL, trades, transfers, transactions, activity, internal, first seen, funding graph, cohorts
Chain13Blocks by number and hash, timestamp lookup, block transactions and logs, transaction envelope, receipt, logs, decoded logs, calldata, decoded call trees, and internal frames
Streams11Live topics, live candles, and multiplexed subscription
Screener and rankings3Filtered sorted views, plus self-describing named rankings
Cohorts4Cohorts for a token, plus metadata, members and evidence edges for one
Addresses3Summary, type, label
Live RPC4Node head, address code, native balance, and a live token metadata probe
Contracts1Block-bound runtime code observation
Batch1Several reads answered from one shared snapshot
Monitoring6Liveness, readiness, checkpoints, gaps, metrics

Batch reads share a snapshot

POST /batch: up to 20 reads under one snapshot. Each item names a batchable route/parameters; optional id is echoed, defaulting to its zero-based position.

{
  "requests": [
    { "id": "token", "route": "token.overview", "params": { "address": "0x..." } },
    { "id": "wallet", "route": "wallet.overview", "params": { "address": "0x..." } }
  ]
}

The response includes shared canonical head/hash and per-item status with body/error. Outer 200 does not imply item success. Unknown routes, missing wallet scope, or exceeded shared response budget (413) fail only that item. More than 20 items returns whole-request 400; unknown params fields return whole-request 422 invalid_json_body.

Live read-through

Four routes bypass the index: head, current contract status, native balance, live ERC-20 metadata. Each pins one observed block.

Rankings publish their formula

Static ranking catalogue; published formulas/per-row inputs reproduce ordering. Screener: caller-selected filters/order; no editorial ranking.

View this page as Markdown