Build
Token API
A public REST API for Pyre token data — launches, prices, holders, candles, rewards, and stats. No key required.
Base URL: https://indexer-production-b7e1.up.railway.app. All monetary values are decimal strings in wei / raw token units; the client applies its own display and USD conversion. The SDK wraps every endpoint with types and bigint conversion — prefer it over raw fetches.
Endpoints
| Method | Path | Returns |
|---|---|---|
| GET | /tokens | recent launches (array) |
| GET | /tokens/:address | one token, or 404 |
| GET | /tokens/:address/candles?interval=1m|5m|1h | OHLCV candles |
| GET | /tokens/:address/holders | top 100 holders |
| GET | /tokens/:address/fee-events | fee/burn/payout feed |
| GET | /wallets/:wallet/rewards | earned across all tokens |
| GET | /stats | global $PYRE burn + token count |
| POST | /graphql | full GraphQL over every table |
Token object
json
{
"address": "0x…",
"curve": "0x…",
"name": "Ember",
"symbol": "EMBER",
"creator": "0x…",
"metadataURI": "ipfs://…",
"createdAt": 1752000000000, // unix ms
"preset": 1,
"buyTaxBps": 100, "sellTaxBps": 100, "curveFeeBps": 100,
"graduated": false,
"phase": "curve", // curve | readyToGraduate | graduated
"progressBps": 4200, // 0..10000 toward graduation
"weights": { "1": 6000, "4": 4000 }, // moduleId → weightBps
"targetRaise": "…", "realEth": "…",
"tokensSold": "…", "totalSupply": "…",
"lastPriceWei": "…", "lifetimeFees": "…",
"poolId": null
}Example
bash
curl https://indexer-production-b7e1.up.railway.app/tokens | jq '.[0]'
curl https://indexer-production-b7e1.up.railway.app/statsGraphQL
A full GraphQL schema is generated over every indexed table (trades, pots, draws, epochs, vault tranches, and more) at /graphql, with a GraphiQL playground on GET.
Timestamps
Note the units:createdAt, fee-event ts, and reward ts are milliseconds; candle time and holder timestamps are seconds. The SDK normalizes these.Empty collections until the protocol is live on-chain — see the introduction.