Skip to content

Get the data

Every confirmed fact in Frontier is public onchain. You can read game state, Aspect standings, and story history straight from Herald over HTTP, or query the shard RPC without an API key or account.

  • Herald base URL is https://herald.realms.party (GET requests, Access-Control-Allow-Origin: *).
  • Shard Starknet JSON-RPC URL is https://rpc.realms.party/rpc/v0_10_2 (POST requests, Access-Control-Allow-Origin: *).

Both endpoints work from curl, Node.js, Python, and browser pages. If you use Python's urllib, send a standard User-Agent header so edge filters accept your request.

Copy-paste agent prompt

Paste this prompt into any coding assistant to query live Realms game data without writing scripts by hand. Replace the final line with your own question.

Agent prompt
You are helping me read public Realms: Frontier onchain game data. All data is read-only and public; no API key, wallet, or account is needed.

Base URLs (CORS enabled for browsers; send a standard User-Agent header if using Python urllib):
- Herald HTTP API: https://herald.realms.party
- Shard Starknet JSON-RPC: https://rpc.realms.party/rpc/v0_10_2

Finding the active game_id:
- Call GET https://herald.realms.party/games first.
- Pick the game whose name matches /^frontier-\d+$/ for the season game.

Aspect IDs: 1 = Prowess, 2 = Luminary, 3 = Havoc, 4 = Insight.

Units and encoding:
- Snapshot row numbers are hex strings ("0x..."). Parse with BigInt(value) and divide raw resource, troop, or Glory amounts by 1,000,000,000 (10^9).
- /games/:id/aspects/:aspect_id/members returns glory as a season-total decimal string scaled by 1,000,000,000 — divide by 1,000,000,000 for whole Glory (for example, "10000000000" is 10 Glory).
- History item.value.timestamp values are Unix timestamps in seconds (hex or decimal string).
- Useful /snapshot models: AspectHyperstructure, AspectMembers, AspectActivity, HomeAspect, RaceMember, RaceResult, ExplorerTroops, DeepArmy, DeepSite, GarrisonSlot, AltarBar, WorldBane, TeamBane, Seal, Structure.

Public routes:
- GET https://herald.realms.party/games (optional ?player=0x...) -> confirmed_block, world_address, and games[] (game_id, name, mode, status, player_count, settled_realms_count, aspect_members, aspect_race, clock)
- GET https://herald.realms.party/manifest (none) -> version, chainId, rpcUrl, and contracts.games
- GET https://herald.realms.party/health (none) -> confirmed_block, decoded_models, service, success, undecodable_events
- GET https://herald.realms.party/games/:id/snapshot (?models=Name1,Name2 (optional &actor=0x..., &owner=0x...)) -> game_id, confirmed_block, and models[] with hex-encoded row values
- GET https://herald.realms.party/games/:id/aspects/:aspect_id/members (?limit=1..100 (default 50)&offset=0) -> total, limit, offset, and members[] (rank, entity_id, realm_id, owner, glory as season-total decimal string scaled by 1,000,000,000 — divide by 1,000,000,000 for whole Glory, ancient_seal (whether the owner holds the Ancient Seal in that game))
- GET https://herald.realms.party/games/:id/history (?model=StoryEvent or BattleEvent, optional &story=..., &owner=0x..., &entity_id=..., &limit=0..500 (default 100)&offset=0) -> complete_through_block, total, limit, offset, and items[] newest first
- GET https://herald.realms.party/games/:id/sites/:entity_id (decimal site entity_id in path) -> ExpeditionSite row or 404 unknown_site
- GET https://herald.realms.party/games/:id/stats (none) -> game_id, players, realms, and transactions ({ total, days: [{ day, transactions }] }); Cache-Control: public, max-age=3600 (3,600s)
- GET https://herald.realms.party/games/updates (Server-Sent Events stream) -> data: changed whenever the game directory updates
- GET https://herald.realms.party/games/:id/days/:day/ranks (closed day number in path) -> closed Frontier day ranks (404 until the day closes)
- GET https://herald.realms.party/games/:id/review/snapshot (none) -> frozen end-of-game snapshot (404 while the game is live)
- POST https://rpc.realms.party/rpc/v0_10_2 (JSON-RPC 2.0 body (e.g. starknet_blockNumber, starknet_getBlockWithTxHashes)) -> standard Starknet JSON-RPC response

Rate limits and caching etiquette:
- Most Herald routes set Cache-Control: no-store (/games/:id/stats sets public, max-age=3600), so cache responses on your side for at least 60 seconds (or 1 hour for dashboards and spreadsheets).
- Always pass ?models=... on /snapshot instead of requesting the whole world.
- Use the maximum page size (limit=100 on /members, limit=500 on /history) and page sequentially rather than firing dozens of concurrent offsets.
- Subscribe to GET /games/updates (SSE) instead of polling /games every second.
- Do not scan tens of thousands of historical blocks over RPC from a browser; read Herald's folded /snapshot and /history routes instead.

What NOT to do:
- Read-only only: never send write calls, transactions, or mutations.
- Never ask for private keys, API keys, or private endpoints.
- Calling /games/:id/leaderboard on a Season 1 game returns 404 season_one_ranks_aspects, so read /games/:id/aspects/:aspect_id/members instead.

Example questions you can answer for me:
1. Show the top Glory earners per Aspect this season.
2. Show my Aspect's standing (hyperstructure height, member count, top 10 Glory).
3. Export all Aspect rosters as a CSV.
4. Count realms created per UTC day.

My question: Show the top Glory earners per Aspect this season.

Worked example: top Glory earners per Aspect this season

Running the prompt's default question read-only against the live shard on 24 November 2026 (confirmed_block: 82485, Final Testnet game_id: 1, testnet-1795521600) returns each Aspect's current season standings (shortened to top 2 per Aspect):

Answer
{
  "game": "testnet-1795521600",
  "game_id": 1,
  "status": "Live",
  "confirmed_block": 82485,
  "aspects": {
    "Prowess": {
      "height": 0,
      "members": 8,
      "top_glory": [
        { "rank": 1, "realm_id": 2182, "glory": "0" },
        { "rank": 2, "realm_id": 3280, "glory": "0" }
      ]
    },
    "Luminary": {
      "height": 0,
      "members": 4,
      "top_glory": [
        { "rank": 1, "realm_id": 2077, "glory": "0" },
        { "rank": 2, "realm_id": 382, "glory": "0" }
      ]
    },
    "Havoc": {
      "height": 0,
      "members": 5,
      "top_glory": [
        { "rank": 1, "realm_id": 93, "glory": "0" },
        { "rank": 2, "realm_id": 266, "glory": "0" }
      ]
    },
    "Insight": {
      "height": 0,
      "members": 6,
      "top_glory": [
        { "rank": 1, "realm_id": 7181, "glory": "0" },
        { "rank": 2, "realm_id": 4800, "glory": "0" }
      ]
    }
  }
}

Aspect IDs

Herald identifies the 4 Aspects by number across /games, /snapshot, and /aspects/<id>/members.

IDAspect
1 Prowess
2 Luminary
3 Havoc
4 Insight

Public routes

RouteParametersReturns
GET /gamesoptional ?player=0x...confirmed_block, world_address, and games[] (game_id, name, mode, status, player_count, settled_realms_count, aspect_members, aspect_race, clock)
GET /manifestnoneversion, chainId, rpcUrl, and contracts.games
GET /healthnoneconfirmed_block, decoded_models, service, success, undecodable_events
GET /games/:id/snapshot?models=Name1,Name2 (optional &actor=0x..., &owner=0x...)game_id, confirmed_block, and models[] with hex-encoded row values
GET /games/:id/aspects/:aspect_id/members?limit=1..100 (default 50)&offset=0total, limit, offset, and members[] (rank, entity_id, realm_id, owner, glory as season-total decimal string scaled by 1,000,000,000 — divide by 1,000,000,000 for whole Glory, ancient_seal (whether the owner holds the Ancient Seal in that game))
GET /games/:id/history?model=StoryEvent or BattleEvent, optional &story=..., &owner=0x..., &entity_id=..., &limit=0..500 (default 100)&offset=0complete_through_block, total, limit, offset, and items[] newest first
GET /games/:id/sites/:entity_iddecimal site entity_id in pathExpeditionSite row or 404 unknown_site
GET /games/:id/statsnonegame_id, players, realms, and transactions ({ total, days: [{ day, transactions }] }); Cache-Control: public, max-age=3600 (3,600s)
GET /games/updatesServer-Sent Events streamdata: changed whenever the game directory updates
GET /games/:id/days/:day/ranksclosed day number in pathclosed Frontier day ranks (404 until the day closes)
GET /games/:id/review/snapshotnonefrozen end-of-game snapshot (404 while the game is live)
POST /rpc/v0_10_2JSON-RPC 2.0 body (e.g. starknet_blockNumber, starknet_getBlockWithTxHashes)standard Starknet JSON-RPC response

All examples below were run against the live Frontier shard on 24 November 2026 during Final Testnet (game_id: 1, testnet-1795521600), with long responses shortened. For the season, pick the game whose name starts with frontier- from /games.

1. Game directory (GET /games)

Lists every game on the shard with its clock, player count, Aspect member counts, and hyperstructure heights. Pass an optional ?player=0x... address to include that player's state.

Example request
curl -sS https://herald.realms.party/games
const directory = await fetch("https://herald.realms.party/games").then((r) => r.json());
const season = directory.games.find((g) => /^frontier-\d+$/.test(g.name)) ?? directory.games[0];
console.log(season.game_id, season.name, season.status, season.aspect_race);
Shortened response
{
  "confirmed_block": 50644,
  "world_address": "0xaadbe833ac33670c8c2aa05ce406a07f44742582def994ae1e601ae84f4a3",
  "games": [
    {
      "game_id": 1,
      "name": "testnet-1795521600",
      "mode": "frontier",
      "status": "Live",
      "day_index": 0,
      "player_count": 1,
      "settled_realms_count": 1,
      "aspect_members": { "1": 0, "2": 1, "3": 0, "4": 0 },
      "aspect_race": {
        "finish_height": 10000,
        "season_days": 50,
        "heights": { "1": 0, "2": 0, "3": 0, "4": 0 }
      },
      "clock": {
        "start_settling_at": 1795521600,
        "start_main_at": 1795521600,
        "end_at": 1796169600,
        "scheduled_end_at": 1796169600
      }
    }
  ]
}
FieldMeaning
confirmed_blockLatest confirmed Madara block folded by Herald.
game_idNumeric ID used in /games/<game_id>/... routes.
nameGame slug (testnet-<timestamp> for testnet, frontier-<timestamp> for Season 1).
statusGame lifecycle state (Registration, Live, Ended).
player_count / settled_realms_countEnrolled players and created realms in the game.
aspect_membersMember count per Aspect ID.
aspect_racefinish_height, season_days, and current heights per Aspect ID.
clockUnix timestamps in seconds for when realm creation opens, main start, and end.

2. Shard manifest (GET /manifest)

Returns the shard chain ID, the public Starknet RPC URL, release schema hashes, and the games contract address.

Example request
curl -sS https://herald.realms.party/manifest
const manifest = await fetch("https://herald.realms.party/manifest").then((r) => r.json());
console.log(manifest.chainId, manifest.rpcUrl, manifest.contracts.games);
Shortened response
{
  "version": 1,
  "chainId": "0x50524f44554354494f4e5f31386561636232303030656234313063",
  "rpcUrl": "https://rpc.realms.party/rpc/v0_10_2",
  "contracts": {
    "games": "0xaadbe833ac33670c8c2aa05ce406a07f44742582def994ae1e601ae84f4a3"
  }
}

3. Herald health (GET /health)

Reports whether Herald is up, its latest confirmed_block, and how many world models it decodes.

Example request
curl -sS https://herald.realms.party/health
const health = await fetch("https://herald.realms.party/health").then((r) => r.json());
console.log(health.confirmed_block, health.success);
Response
{
  "confirmed_block": 49678,
  "decoded_models": 88,
  "service": "herald",
  "success": true,
  "undecodable_events": 0
}

4. Current state snapshot (GET /games/:id/snapshot?models=...)

Returns current confirmed rows for the models you name in models (comma-separated). Always pass ?models=... so you only download the tables you need. You can also pass &actor=0x... or &owner=0x... to narrow rows to one player.

Useful Season 1 model names are AspectHyperstructure, AspectMembers, AspectActivity, HomeAspect, RaceMember, RaceResult, ExplorerTroops, DeepArmy, DeepSite, GarrisonSlot, AltarBar, WorldBane, TeamBane, Seal, Structure. Numeric values inside snapshot rows are hex strings ("0x..."), which BigInt(value) parses cleanly.

Example request
curl -sS "https://herald.realms.party/games/1/snapshot?models=AspectHyperstructure,AspectActivity,DeepSite"
const models = "AspectHyperstructure,AspectActivity,DeepSite";
const snap = await fetch(`https://herald.realms.party/games/1/snapshot?models=${models}`).then((r) => r.json());
for (const entry of snap.models) console.log(entry.model, entry.rows.length);
Shortened response
{
  "game_id": "1",
  "confirmed_block": 50645,
  "models": [
    {
      "model": "AspectHyperstructure",
      "rows": [
        { "key": "0x1:0x1", "value": { "game_id": "0x1", "aspect": "0x1", "height": "0x0" } },
        { "key": "0x1:0x2", "value": { "game_id": "0x1", "aspect": "0x2", "height": "0x0" } }
      ]
    },
    {
      "model": "DeepDay",
      "rows": [{ "key": "0x1:0x0", "value": { "game_id": "0x1", "day": "0x0", "size": "0x1", "points": [0, 1, 2, 3] } }]
    },
    {
      "model": "DeepSite",
      "rows": [
        {
          "key": "0x1:0x1",
          "value": { "game_id": "0x1", "entity_id": "0x1", "kind": "0x0", "ring": "0x0", "day": "0x0", "aspect": "0x0" }
        }
      ]
    },
    { "model": "AspectActivity", "rows": [] }
  ]
}

5. Aspect Glory roster (GET /games/:id/aspects/:aspect_id/members)

Season 1 ranks players by Glory inside each Aspect. Calling /games/:id/leaderboard on a Season 1 game returns 404 season_one_ranks_aspects, so read /games/:id/aspects/:aspect_id/members instead.

Page size limit defaults to 50 and accepts 1 to 100. Use offset to walk the full roster. The response also includes an X-Confirmed-Block header.

Example request
curl -sS "https://herald.realms.party/games/1/aspects/2/members?limit=50&offset=0"
const roster = await fetch(
  "https://herald.realms.party/games/1/aspects/2/members?limit=50&offset=0",
).then((r) => r.json());
console.log(roster.total, roster.members);
Response
{
  "game_id": "1",
  "aspect": 2,
  "total": 1,
  "limit": 50,
  "offset": 0,
  "members": [
    {
      "rank": 1,
      "entity_id": "1424507508097025",
      "realm_id": 2077,
      "owner": "0x57b9e20b749d8fa23967c0621bccd56ad781984f6620b08a25cda35acb4340",
      "glory": "0"
    }
  ]
}

Each entry in members has rank (1-based integer), entity_id (realm entity ID string), realm_id (integer), owner (Starknet address hex string), and glory (season-total decimal string scaled by 1,000,000,000 — divide by 1,000,000,000 for whole Glory).

6. Story history (GET /games/:id/history)

Returns confirmed immutable events ordered newest first, with complete_through_block and total. Filter by model=StoryEvent with an optional story variant (RealmCreatedStory, ExplorationReward, SitePayout, ExplorerCreateStory, StructureLevelUpStory), or query model=BattleEvent for battles. You can also filter by owner=0x... or entity_id=<decimal>.

Page size limit defaults to 100 and accepts 0 to 500.

Example request
curl -sS "https://herald.realms.party/games/1/history?model=StoryEvent&story=RealmCreatedStory&limit=100&offset=0"
const url =
  "https://herald.realms.party/games/1/history?model=StoryEvent&story=RealmCreatedStory&limit=100&offset=0";
const page = await fetch(url).then((r) => r.json());
console.log(page.complete_through_block, page.total, page.items.length);
Response
{
  "complete_through_block": 50645,
  "items": [
    {
      "block_number": 50515,
      "event_index": 29,
      "game_id": "1",
      "model": "StoryEvent",
      "transaction_hash": "0x623f194105005d344a13079a76a67b524771b1e347329153439119d2dce3c88",
      "transaction_index": 0,
      "value": {
        "owner": "0x57b9e20b749d8fa23967c0621bccd56ad781984f6620b08a25cda35acb4340",
        "story": { "RealmCreatedStory": { "coord": { "x": "0xfffff7e2", "y": "0xffffffff", "alt": false } } },
        "game_id": "0x1",
        "entity_id": "0x50f9500000001",
        "timestamp": "0x6b057cca"
      }
    }
  ],
  "limit": 100,
  "offset": 0,
  "total": 1
}

Each item in items has block_number, transaction_index, event_index, transaction_hash, game_id, model, and value (where value.timestamp holds the Unix timestamp in seconds as a hex or decimal string).

7. Single expedition site (GET /games/:id/sites/:entity_id)

Looks up one expedition site by decimal entity_id. Returns 404 {"error":"unknown_site"} when no site exists for that ID. When a site exists, it returns the ExpeditionSite row (game_id, entity_id, category, initial_guard_count, alt, col, row, and clear).

Example request
curl -sS "https://herald.realms.party/games/1/sites/1"
const response = await fetch("https://herald.realms.party/games/1/sites/1");
console.log(response.status, await response.json());
Response for an unused site ID
{
  "error": "unknown_site"
}

8. Chain RPC (POST /rpc/v0_10_2)

Standard Starknet JSON-RPC endpoint for block numbers, block timestamps, and transaction hashes.

Example request
curl -sS -X POST https://rpc.realms.party/rpc/v0_10_2 \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"starknet_blockNumber","params":[]}'
const rpc = (method, params) =>
  fetch("https://rpc.realms.party/rpc/v0_10_2", {
    method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify({ jsonrpc: "2.0", id: 1, method, params }),
  }).then((r) => r.json());

const head = await rpc("starknet_blockNumber", []);
const latest = await rpc("starknet_getBlockWithTxHashes", ["latest"]);
console.log(head.result, latest.result.block_number, latest.result.transactions.length);
Shortened responses
{ "jsonrpc": "2.0", "id": 1, "result": 49680 }
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "block_number": 49680,
    "block_hash": "0x64c7b6a0de6707479d4e20fafb524b90fb8f336fe3194122143a1c6d9fb745a",
    "status": "ACCEPTED_ON_L2",
    "timestamp": 1795520902,
    "transactions": []
  }
}

Herald also exposes GET /games/:id/stats (game KPIs and daily transaction counts), GET /games/updates (a Server-Sent Events stream that emits data: changed when the game directory changes), GET /games/:id/days/:day/ranks (closed Frontier day ranks, 404 until a day closes), and GET /games/:id/review/snapshot (frozen snapshot after a game ends, 404 while live).

Rate etiquette

  • Most Herald routes set Cache-Control: no-store (/games/:id/stats sets public, max-age=3600), so cache responses on your side for at least 60 seconds (or 1 hour for dashboards and spreadsheets).
  • Always pass ?models=... on /snapshot instead of requesting the whole world.
  • Use the maximum page size (limit=100 on /members, limit=500 on /history) and page sequentially rather than firing dozens of concurrent offsets.
  • Subscribe to GET /games/updates (SSE) instead of polling /games every second.
  • Do not scan tens of thousands of historical blocks over RPC from a browser; read Herald's folded /snapshot and /history routes instead.

Three runnable recipes

Copy any script below into a .mjs file and run it with Node 20+ (node script.mjs), or paste the body into a browser console. Every recipe was run against the live shard on 24 November 2026.

My Aspect's standing

Finds the active Season 1 (or testnet) game, reads your Aspect's hyperstructure height and member count, and loads its top 10 Glory earners. Change myAspect to 1 (Prowess), 2 (Luminary), 3 (Havoc), or 4 (Insight).

Script
const HERALD = "https://herald.realms.party";
const ASPECTS = { 1: "Prowess", 2: "Luminary", 3: "Havoc", 4: "Insight" };
const myAspect = 2;

const dir = await fetch(`${HERALD}/games`).then((r) => r.json());
const game = dir.games.find((g) => /^frontier-\d+$/.test(g.name)) ?? dir.games[0];
const top = await fetch(`${HERALD}/games/${game.game_id}/aspects/${myAspect}/members?limit=10&offset=0`).then((r) =>
  r.json(),
);

console.log(
  JSON.stringify(
    {
      game: game.name,
      status: game.status,
      aspect: ASPECTS[myAspect],
      height: game.aspect_race.heights[String(myAspect)],
      finish_height: game.aspect_race.finish_height,
      members: game.aspect_members[String(myAspect)],
      top_members: top.members,
    },
    null,
    2,
  ),
);
Output
{
  "game": "testnet-1795521600",
  "status": "Live",
  "aspect": "Luminary",
  "height": 0,
  "finish_height": 10000,
  "members": 1,
  "top_members": [
    {
      "rank": 1,
      "entity_id": "1424507508097025",
      "realm_id": 2077,
      "owner": "0x57b9e20b749d8fa23967c0621bccd56ad781984f6620b08a25cda35acb4340",
      "glory": "0"
    }
  ]
}

Aspect rosters as CSV

Pages all 4 Aspects at limit=100 and prints a CSV you can redirect to a file (node rosters.mjs > rosters.csv) and open in a spreadsheet.

Script
const HERALD = "https://herald.realms.party";
const ASPECTS = { 1: "Prowess", 2: "Luminary", 3: "Havoc", 4: "Insight" };

const dir = await fetch(`${HERALD}/games`).then((r) => r.json());
const game = dir.games.find((g) => /^frontier-\d+$/.test(g.name)) ?? dir.games[0];

const rows = ["aspect,rank,owner,realm_id,glory"];
for (const [id, name] of Object.entries(ASPECTS)) {
  for (let offset = 0; ; offset += 100) {
    const page = await fetch(
      `${HERALD}/games/${game.game_id}/aspects/${id}/members?limit=100&offset=${offset}`,
    ).then((r) => r.json());
    for (const m of page.members) {
      rows.push(`${name},${m.rank},${m.owner},${m.realm_id},${m.glory}`);
    }
    if (offset + page.limit >= page.total) break;
  }
}

console.log(rows.join("\n"));
Output
aspect,rank,owner,realm_id,glory
Luminary,1,0x57b9e20b749d8fa23967c0621bccd56ad781984f6620b08a25cda35acb4340,2077,0

Realms created per UTC day

Pages RealmCreatedStory events at limit=500, converts each item.value.timestamp to a UTC date (YYYY-MM-DD), and prints the daily counts.

Script
const HERALD = "https://herald.realms.party";

const dir = await fetch(`${HERALD}/games`).then((r) => r.json());
const game = dir.games.find((g) => /^frontier-\d+$/.test(g.name)) ?? dir.games[0];

const counts = {};
for (let offset = 0; ; offset += 500) {
  const page = await fetch(
    `${HERALD}/games/${game.game_id}/history?model=StoryEvent&story=RealmCreatedStory&limit=500&offset=${offset}`,
  ).then((r) => r.json());
  for (const item of page.items) {
    const day = new Date(Number(BigInt(item.value.timestamp)) * 1000).toISOString().slice(0, 10);
    counts[day] = (counts[day] ?? 0) + 1;
  }
  if (offset + page.limit >= page.total) break;
}

console.log(JSON.stringify(counts, null, 2));
Output
{
  "2026-11-24": 1
}