Connecting

API

The API is read-only JSON over HTTP, and the site uses it as is. Every route is GET. HYPE amounts are wei as decimal strings (18 decimals), times are ISO 8601 in UTC, and addresses are lowercase 0x strings. Responses may carry keys not listed here; clients ignore them.

GET /arena

The live ranking.

Field Type Meaning
king Standing or null The #1 coin, null while no coin has volume
standings Standing[] Ranked coins, best first; king is the first
pool.address address The prize pool
pool.balanceWei string HYPE in the pool
pool.projectedPrizeWei string Half the balance: the King's prize if the payout ran now
lastKing object or null The coin that took the most recent payout
updatedAt string When this was computed

A Standing is:

Field Type Meaning
rank integer 1 is the King
movement integer Places gained (+) or lost (-) at the last rank change
token { address, name, symbol } The coin
score number 24 h volume in HYPE
metrics.volumeWei string 24 h volume
metrics.traders integer Unique traders in 24 h
metrics.holderGrowth integer Net new holders in 24 h

lastKing holds token, prizeWei, payoutTx (hash or null) and payoutTxUrl (a link when an explorer is configured, else null).

GET /tokens/:address

One coin. The address must be a 40-hex-character 0x address.

Field Type Meaning
token { address, name, symbol, decimals, creator, pair } The coin; creator is null when it couldn't be read, pair is its WHYPE pool
standing.rank integer or null Null while the coin has no 24 h volume
standing.score number 24 h volume in HYPE
standing.metrics object As in a Standing
roundsWon integer Times the coin has been King at the payout
tradeUrl string or null The DEX link for the coin, null until one is configured

GET /stream

Server-sent events. On connect the current arena is sent, then a new one each time the ranking changes. Each message is an event named arena whose data is a GET /arena body. A comment line is sent every 15 seconds to keep the connection open.

js
const source = new EventSource(`${API_URL}/stream`);
source.addEventListener("arena", (event) => {
  const arena = JSON.parse(event.data);
  console.log(arena.king?.token.symbol, arena.pool.balanceWei);
});

GET /health

Field Type Meaning
status string ok
mode string live or fixtures
chainId integer The chain being read
headBlock integer or null Latest block on the chain
indexedBlock integer or null Latest block Throne has read

Errors

A failed call returns { "error": { "code", "message", "retryable" } } with requestId when known.

Code Status Raised when
VALIDATION_ERROR 400 The token address is malformed
NOT_FOUND 404 The coin isn't in the arena, or the route doesn't exist
INTERNAL_ERROR 500 The request failed inside the service
UPSTREAM_UNAVAILABLE 502 The service can't reach the chain

retryable is true for 5xx codes.