08 / API
Read it
without the site.
Every endpoint is public, read-only and rate limited. Nothing here holds a key or signs for anyone. Base URL https://shelium.xyz.
| Method | Path | Returns |
|---|---|---|
| GET | /api/market | Head block, gas price, the HYPE/USDC v4 pool (mid price in USDC units per HYPE, tick, fee, active liquidity) and quoter results for 1, 10 and 100 HYPE in both directions. 60 requests per minute per network; cached 10 s. |
| GET | /api/book | Every order of SheliumSealBook rebuilt from its events: trader, matcher, side, root, escrow opened and left, fills (slot, size, amounts, limit, salt, leaf, tx), status, plus the scanned block range and any gaps. ?id=<n> for one order, ?trader=0x… for one address. |
| GET | /api/proof | Chain id answered by the RPC, latest block, the book's address and whether code is there, event counts, heldVsOwed, the pair and pool, the token status, the build commit and the source repository. |
| GET | /api/health | ok + chain id + commit. |
| GET | /api/chain | Block, gas and pool mid for the header (a short form of /api/market). |
| POST | /api/rpc | Read-only JSON-RPC relay used by this site's pages (eth_call to the book, pool manager, quoter, WHYPE, USDC; receipts; balances; gas estimates). It never sends a transaction. Budgeted per network. |
A matcher script, outside the browser
examples/matcher.mjs in the repository reads a sheet file, quotes each open slot on the pool and fills the ones that are inside their limit with fillFromPool, signing with a key you give it on your own machine. The end-to-end test runs it against a local fork of Elysium.
MATCHER_KEY=0x… RPC_URL=https://rpc.elysium.kinetiq.xyz BOOK=0x… node examples/matcher.mjs sheet.json --dry-run