Base URL: https://api.xplstr.org/v1. It has answered since 2026-11-11 and was read again on
2026-11-22. The service, its Caddy block and its runbook (docs/RUNBOOK_API.md) are in the
repository.
What it is. Heidrun's versioned REST contract (src/network/heidrun.ts), served by
strblk rest --iris … from the two archive followers and the explorer's follower that already run
on the host. The process holds no chain. The same contract is served by a node that runs
strblk rest --dir … in process, and a test holds both feeds to byte-identical answers.
How to use it is in docs/book/API_GUIDE.md. This page is the reference.
Rules that hold for every route#
- Read only. GET and HEAD read.
OPTIONSis the CORS preflight a browser sends on its own and is answered204with no body, before anything is charged. Every other method answers 405 withAllow: GET, HEADbefore any route runs, and no request body is ever read. Nothing here can submit, change or compute anything. To submit an already-signed transaction, use the JSON-RPC atrpc.xplstr.org(submitTransaction). - Numbers. Every amount, height and nonce is a decimal string, never a JSON number, because a
value past 2^53 loses its last digits as a number. Amounts are in minor units of their ledger.
decimalssays where the point goes: 13 on every ledger, and 0 on WNFT, which counts whole records./v1/tokenslists them. - Unknown is said, not zeroed. Where the chain or this API cannot know a value, the answer says
unknownwith a reason. A transactionphaseofunknownis notrejected. - Errors. A failure is a JSON object with an
errorsentence.400is a malformed parameter.404means this chain holds no such thing.405is a method other than GET, HEAD or OPTIONS.- Every
/v1/tx/{id}route (/v1/tx/{id},/status,/proof,/transfer) takes an id of 64 hex characters. Upper case is accepted and read as lower, so one id has one answer on all four. Anything else answers400without being looked up. Until 2026-11-28 only/statusdid:/v1/tx/nothexanswered200 unknown, and the upper-case id of a settled transfer readunknownthere while/statussaiddeep. /v1/block/hash/{hash}takes 64 hex characters the same way and answers400for anything else;404is kept for a well-formed hash this node holds no block for./v1/contract/{address}and its/storageand/eventsanswer400for an address that is not one, and404when no contract is deployed at a valid address./v1/delegations?master=…&delegate=…answers400for a filter that is not an address, not[]./v1/domain/{name}/holderand/v1/organisation/{domain}answer400for a name that is not an STR.domain, with the chain's own sentence./v1/domain/{name}stays lenient on purpose, as the JSON-RPCfindDomainit answers from does: it is the route a typed search asks, and it answers a string that is not a name200withstanding: "invalid"and the reason./v1/blockscarries at most 50 blocks; a largercountis answered with 50 and anextHeight. Acountof zero or below is a400.- Every
/v1/address/{address}/...route checks the address first. One that fails its checksum answers400with an error that says so: at least one character is wrong. A string that is not an address at all answers400with the format. Neither is answered as an account with no name and no funds. A valid address that holds nothing still answers200with empty figures, because that is true of it. Until 2026-11-18 a typo answered200, empty, and/transactionsanswered404. - A path with a segment past the end of its route answers
404./v1/status/foois not/v1/status. Until 2026-11-18 several routes answered such a path as the route itself. 429means you are over your budget. WaitRetry-Afterseconds: it is a wait and not a ban. Two budgets apply. One counts your requests. The other counts the reads your requests make of the chain, since one request can need several and a large answer counts as more than one. Answers the API already holds cost nothing.503means the chain behind the API could not be reached, is not verified yet, or the API is already asking it for as much as it allows itself, or that an index route has no index. A 503 comes withRetry-Afterand never carries a zero in place of a figure.- An IPv6
/64counts as one caller.
- Every
- CORS.
access-control-allow-origin: *on every answer, and no credentials: there is no cookie and no session, so a browser on any origin may read the data and ambient credentials reach nothing. - Keys. None is required. The public data is open, metered per caller address. A partner the owner has approved may hold a partner key, which changes only how it is metered (below).
- Plain text.
/v1/supply/{symbol}/total.txtand/circulating.txtanswertext/plain: one decimal number in whole units, with a newline, for listing sites that poll a figure. - A page for a browser. A browser that opens
/(anAcceptthat namestext/htmland does not want JSON as much) is shown a page that runs each read from the reader's own browser, on the reader's own budget. Every other request for/,*/*included, gets the JSON catalogue, and/v1is always JSON. Ask for/v1, or sendAccept: application/json, and there is nothing to think about. - Machine description.
GET /v1is the catalogue.GET /v1/openapi.jsonis the OpenAPI 3.1 document. The table below is generated from the same array.
What this API does not publish#
- No price, no market cap, and no circulating figure that excludes treasury or service accounts.
GET /v1/priceanswerspublished: falsewith the reasons. Which source, if any, may publish a price is a decision of the owner that has not been made. - Circulating is the chain's definition and nothing else: supply that is not locked. On STR, locked includes the 1000 STR held behind each proved STR.domain and STR posted as a validator bond. The locked figure is not broken down by cause.
- No watches or webhooks yet. Those are later phases. Every route is public, with or without a key.
Partner keys#
A partner key is for an approved partner's servers. It unlocks no route and no data: the answers are the same public answers. Keys are issued by the operator to partners the owner approves; there is no sign-up.
- How to send it. In the
Authorizationheader and nowhere else:Authorization: Bearer slk_live_<key id>_<secret>. A request that carries a key anywhere else (in the URL, or inX-API-Key) is refused with the401below, so a key in a logged place is noticed at the first call. If a key has been in a URL, ask for it to be revoked. - Servers only. A key is never for a web page: a key in a page is published to everyone who
opens it. A keyed request that carries an
Originheader (every browser sends one) is refused. A page that needs chain data calls the partner's own backend, which holds the key, or calls this API without a key. - What is the key's own. A request bucket and a UTC-day allowance (by default 20 requests a second, a burst of 80, 200,000 a day; the operator may set other numbers for one key), and a share of the chain reads its requests cause, counted to the key rather than to the address it calls from.
- What is shared. The API's total budget of chain reads. All keys together may spend at most
half of it (the operator's setting); the rest is kept for callers without a key. So a key does not
buy capacity beyond that half: when it is in use, a keyed request may get
503withRetry-Afterlike any other. - What every keyed answer carries.
Header Meaning X-RateLimit-Limitrequests this key may make in the current UTC day X-RateLimit-Remainingrequests left in that day X-RateLimit-Resetseconds until the day's allowance renews (midnight UTC) Retry-Afteron a 429only: seconds to wait
429for a keyed request has anerrorCode:rate_limited(faster than the key's budget; waitRetry-Afterseconds) orquota_exceeded(the day's allowance is used; it renews at midnight UTC). It is a wait and not a ban.401means the key was not accepted. The answer is the same for every reason, on purpose, and it haserrorCode: "unauthenticated". Ask the operator. Any request that carries anAuthorizationheader is judged as a key; send none to read without one.- An optional limit on a key, set by the operator: the addresses or ranges it may be used from.
- Counters are kept in memory. When the service restarts, a key's count for the day starts again from zero.
Routes#
40 routes, every one of them GET (and HEAD).
| Route | What it answers |
|---|---|
/v1/status | chain id, height, head hash, pending count, the depth line and whether a write reaches the network |
/v1/parameters | the consensus parameters actually in force, governed values included |
/v1/genesis | the genesis hash, the genesis chain id, and the two chain bindings a signature must carry |
/v1/block/height/{height} | one block, whole, by its height. 404 past the head |
/v1/block/hash/{hash} | one block, whole, by its hash: 64 hex characters, upper case read as lower. 400 for a hash that is not one, 404 when this node holds no such block |
/v1/blocks?from={h}&count={n} | a bounded run of blocks from a height, with nextHeight to page from. count defaults to 20 and at most 50 blocks come back whatever it asks for; zero or below is a 400 |
/v1/tx/{id} | a transaction status: queued, settled, final, diverged, abandoned or honestly unknown. unknown is NOT rejected and is served 200. Every /v1/tx/{id} route takes 64 hex characters, upper case read as lower, and answers 400 for anything else without looking it up |
/v1/tx/{id}/status | one node's reading of where a transaction has got to: unknown, dropped (this node no longer expects it in a block), seen by this node (in its queue), in block h at depth d of the depth the chain's rule asks for, or deep: at least that depth, which this chain treats as settled (by depth, not by signatures). Carries the payment state a wallet shows (seen, included, N blocks deep or safe for value) with what it does and does not promise. Labelled with which archive follower answered and its head height. By transaction id only; 503 on a door that is not reading from archive followers |
/v1/tx/{id}/proof | a merkle proof that a transaction is in a block, with the header root to check it against. 404 when no block this node holds carries it |
/v1/address/{address}/balance | all seven ledgers for one address, the rule each imposes, and the settled and next nonce |
/v1/address/{address}/nonce | the settled nonce, the next nonce a signature must carry, and how many are in flight |
/v1/address/{address}/history | transfers touching an address, newest first; ?depth bounds the scan and reachedGenesis says whether it covered the whole chain |
/v1/address/{address}/domain | the proved STR.domain an address holds, or null |
/v1/domain/{name} | the whole standing of a name: available, booked, held, in burn cooldown. A string that is not an STR.domain is answered 200 with standing invalid and the reason, because this is the route a typed search asks |
/v1/domain/{name}/holder | who holds an STR.domain, allocated or proved, or null. 400 for a name that is not an STR.domain |
/v1/wnft/{id} | a wNFT as the chain holds it: entries, versions, slaves and the lock. 404 when unknown |
/v1/contract/{address} | the callable ABI of a deployed contract. 404 when no contract is deployed there; 400 for an address that is not one |
/v1/contract/{address}/storage?after={key}&limit={n} | a page of a contract's storage slots in key byte order, after the key cursor after; at most 512 slots and 1 MiB, and the answer says which cap it hit and the cursor to ask from next |
/v1/contract/{address}/events?after={sequence}&limit={n} | a page of the event feed of a deployed contract, after the sequence cursor after; at most 256 events and 1 MiB, and the answer says which cap it hit and the cursor to ask from next |
/v1/validators | who may seal at the head, with every admission, eviction and suspension that got it there |
/v1/checkpoint | this node's Urd succinct checkpoint — a constant-size recursive proof over its whole chain |
/v1/delegations?master={a}&delegate={b} | live Gefjon spending authorities, with how much of each cap this window has left. A filter that is not an address is a 400, not an empty list |
/v1/organisation/{domain} | an organisation and its departments: who holds it, who may sign for it, where each department is paid. 400 for a name that is not an STR.domain, 404 for one that is not a proved master |
/v1/collateral/reserves | reserves held against minted $TR, so a holder can check the peg themselves |
/v1/bridge/attestors | the keys this chain's genesis authorises to mint $TR. An empty list is a real answer |
/v1/live | Sirius: the honest live figures for an embedded status widget — height, head age, last block interval, the depth line and the seats on the roll. No throughput figure, because none is measured |
/v1/network | which realm this chain is: chain id and genesis hash, matched against the network register |
/v1/tokens | the seven native ledgers from their definitions: symbol, decimals, supply policy, cap, whether a holder may transfer it and the purpose a transfer must carry |
/v1/tokens/{symbol} | one native ledger. 404 for a symbol this chain does not keep |
/v1/supply | supply and circulating per value ledger, as the chain defines them: circulating is supply that is not locked. Read from the chain index; 503 where none is wired |
/v1/supply/{symbol} | one value ledger of /v1/supply |
/v1/supply/{symbol}/total.txt | the total supply in whole units, as plain text, for a listing site |
/v1/supply/{symbol}/circulating.txt | the circulating supply as the chain defines it, in whole units, as plain text, for a listing site |
/v1/address/{address}/transactions?offset={n}&limit={n} | an address's whole transfer history, newest first, paged at most 100 a page. Read from the chain index; 503 where none is wired |
/v1/tx/{id}/transfer | one transfer by id from the whole chain: parties, their STR.domains, amount, ledger and block. Its depth is /v1/tx/{id} |
/v1/price | answers that no price, market cap or treasury-excluding circulating figure is published, and why |
/v1/ready | readiness: 200 when the chain behind this API answers, 503 with the reason when it does not |
/v1/openapi.json | the OpenAPI 3.1 description of this surface |
/v1/health | liveness, deliberately thin: it asks the chain nothing |
/v1/version | the commit this build came from and when it was built, the same stamp every public surface answers. Asks the chain nothing |
Where each answer comes from#
| Routes | Source |
|---|---|
/v1/status, /v1/parameters, /v1/genesis, /v1/network, /v1/live, /v1/block/…, /v1/blocks, /v1/tx/{id}, /v1/tx/{id}/proof, /v1/address/{a}/balance, nonce, history, domain, /v1/domain/…, /v1/wnft/…, /v1/contract/…, /v1/validators, /v1/checkpoint, /v1/delegations, /v1/organisation/…, /v1/collateral/reserves, /v1/bridge/attestors | The node: Iris on the archive followers, the same read method the in-process door calls on its surface |
/v1/tx/{id}/status | ONE archive follower, every read from the same one, named in the answer as follower n of m with its head height. A door that is not reading from archive followers answers 503, because it may be running inside a sealing seat |
/v1/supply…, /v1/address/{a}/transactions, /v1/tx/{id}/transfer | The chain index: the explorer's follower (Hlidskjalf), read over its loopback JSON mirror. These answer 503 where no index is wired |
/v1/tokens…, /v1/price, /v1/health, /v1, /v1/openapi.json | This process: the token definitions compiled into the build, and the API's own description |
/v1/ready | The node, asked whether it answers |
One node's reading of a transaction: /v1/tx/{id}/status#
/v1/tx/{id} passes the node's own phase through. /v1/tx/{id}/status answers the same question in
five states, and says whose answer it is (schema sourceless.tx-status/2):
state | Meaning |
|---|---|
unknown | This node has no record of it in a block or in its queue. NOT failed: it may not have reached this node, it may be in a block older than the heights the node searched, or the id may be wrong. The node searches its last 1,024 blocks and, below them, its transaction index (Messier), and says which heights that covered |
dropped | This node accepted it once and no longer expects it in a block: the node's own diverged or abandoned, in nodePhase, with its reason in nodeReason. It may need to be sent again |
seen | This node holds it in its queue and no block carries it. Not paid |
in-block | A block on this node's chain carries it: block.height, and depth.blocks of the depth.required blocks the chain's rule asks for |
deep | At least depth.required blocks deep (12 on Asgard): the depth this chain treats as settled. Settlement here is by depth, not by signatures: no block on Asgard is backed by a quorum yet. The node's own word, final, stays in nodePhase |
A node final that is contested (the node holds a competing branch below that block), or one
reported shallower than the rule, is answered in-block, never deep. contested is the node's own
flag, carried on settled and final alike and derived by one rule for every surface
(settlementContest, src/core/var.ts): the explorer's transaction page, the wallet and the CLI
wallet show the same flag in the same sentence. Every answer carries reading: scope
is one-node, node names which archive follower read it (follower 1 of 2, never an address),
headHeight is that follower's head, and note says that another node may hold a different view.
Two followers can disagree; the API does not vote between them or blend their answers. An answer a
follower gives that does not hang together (a phase that is not one, a depth that is not a count, a
settled past the required depth) is refused 502 in one fixed sentence and logged for the operator.
The four payment states: payment#
Every answer whose state is seen, in-block or deep also carries payment: which of the
four payment states a person sees in the wallet, the CLI wallet and the explorer it has reached, and
what that state does and does not promise. It is a projection of state and forValue, not a second
reading (src/network/heidrun-payment-state.ts), and it is null on unknown and dropped, which
are on no rung. Additive: a client that pinned sourceless.tx-status/2 before it existed may ignore it.
payment.state | label (Asgard) | Promises | Does not promise |
|---|---|---|---|
seen | Seen | a node holds it in its queue, waiting for a block | that any block will carry it; it can still be dropped or replaced, and it is not paid |
included | Included | a block carries it, at least one block deep | that the block stays: a competing branch can still replace it at this depth |
deep | 12 blocks deep | its block is at least chain.requiredConfirmations deep, counting its own: the depth this chain treats as settled | agreement: it is a count of blocks, not a signature quorum |
safe-for-value | Safe for value | at least settlement.valueDepth (600) blocks deep: the depth asked before value moves | protection from a large enough coalition of seat keys: still a count of blocks |
payment.step is 1 to 4 and payment.of is 4. A contested or shallow final is included, exactly
as state is in-block; deep becomes safe-for-value only when forValue.reached is true.
By transaction id only: 64 hex characters. An address, a name or anything else is refused 400
before any node read is spent. Metered like every other route: the door's request bucket first, then
each node read against the caller's (or the key's) read budget.
curl -s https://api.xplstr.org/v1/tx/<txId>/status{"schema":"sourceless.tx-status/2","txId":"…","state":"in-block","block":{"height":"41250","hashHex":"…"},
"depth":{"blocks":4,"required":12},"contested":false,"words":"in block 41250, 4 of 12 blocks deep",
"payment":{"state":"included","step":2,"of":4,"label":"Included","promises":"a block carries it, at least one block deep","doesNotPromise":"that the block stays: …"},
"nodePhase":"settled","nodeReason":null,
"reading":{"scope":"one-node","node":"follower 1 of 2","headHeight":"41253","observedAt":"…","note":"One node's reading at one moment, not the network's. …"}}(The figures above are illustrative, not a recorded answer.)
Versioning#
/v1 changes are additive only: new routes and new fields. A client must ignore a field it does not
know. A change that would break a client is a new prefix, /v2, served beside /v1.
GET /v1/openapi.json carries the contract version (info.version).