# Network data

> Inspect public JSON figures for HeyEly API usage, Elysium token and funding state, order book depth, and holder rewards.

Query `GET /api/network.json` to pull a single JSON snapshot of HeyEly API activity, confirmed token and funding balances on Elysium, order book state, and holder rewards totals. The route is public and needs no account or API key.

```bash
curl "https://heyely.si/api/network.json?range=30d"
```

Pass `range` as `24h`, `7d`, `30d`, `90d`, or `all`. Leaving it out or sending an unrecognized value falls back to `7d`. If the snapshot cannot be assembled, the server responds with `503`.

## Where the numbers come from

On-chain state comes from Elysium (Chain ID `99901` on mainnet, `99801` on testnet), a Kinetiq Arbitrum Orbit L2 settling to HyperEVM with 100 ms blocks and 300 Mgas/s throughput. You can verify every block and transaction directly on the [Elysium explorer](https://elysium.kinetiq.xyz/explorer).

| Kind       | Source                                                                                                           | Refresh cadence                 |
| ---------- | ---------------------------------------------------------------------------------------------------------------- | ------------------------------- |
| On chain   | The credit token, sale contract, HeyEly launch token, and hook read together at a single confirmed Elysium block | Every 60 seconds                |
| Order book | Placements, fills, cancellations, and claims indexed from the book contract wherever deployed                    | As new blocks index             |
| Usage      | Hourly rollups of completed API requests                                                                         | Every 5 minutes                 |
| Reported   | Finalized paid credit spend logged by HeyEly                                                                     | Alongside each network snapshot |

All timestamps use UTC, and token or currency amounts are serialized as integer base units. A `null` or omitted value means the figure is unknown, whereas `0` indicates an actual observed zero.

`meta.measured` gives the exact window covered by hourly usage rollups; if ingestion lags, the series stops at the latest available hour or day. The payload also identifies the active network, the confirmed block behind chain reads, the indexed block behind order book figures, and whether indexing is lagging or rebuilding.

## Funding

| Figure                | Meaning                                                                                                                               | Source                        |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- |
| Funding wallet        | Observed bridged USDC balance held in the sale's funding wallet                                                                       | On chain                      |
| Circulating supply    | Total credit token supply at the confirmed Elysium block                                                                              | On chain                      |
| Credit activated      | Cumulative service credit granted after activation fees                                                                               | Confirmed activation receipts |
| Purchased credit used | Cumulative finalized paid credit spent on model calls. Usage's credit spent includes free credit as well, so that total can be higher | Recorded by HeyEly            |

Sale proceeds land in the funding wallet. Its reported balance is purely an on-chain observation of that address, not a binding reserve commitment, and HeyEly computes no ratio comparing that wallet against circulating tokens or unused credit.

## Usage

The usage block returns request counts, token volume, and credit spent per UTC hour for `24h` and per UTC day for wider windows (indicated by `meta.bucket`), together with overall success rate and median time to first token for the chosen range.

| Figure                     | Meaning                                                                     |
| -------------------------- | --------------------------------------------------------------------------- |
| Requests                   | Finished requests logged by the gateway, including failed ones              |
| Tokens                     | Input and output tokens across succeeded calls, using each provider's count |
| Credit spent               | Total billed cost of completed requests, including eligible free credit     |
| Success rate               | Fraction of counted requests that completed without failing                 |
| Median time to first token | Median delay until the first token on succeeded streamed responses          |

A call counts as failed when it finishes with a 5xx status, a provider 408 or 429, an in-stream error, a dropped stream, an unreachable upstream provider, or after sitting abandoned for 15 minutes. Client rejections (`400`, `401`, `402`, `403`, `404`, `413`, and `422`) are excluded from reliability metrics. Percentage rates and latency percentiles populate once the window has at least 20 requests.

## Models

The model leaderboard sorts models by total token volume across its own lookback window and states the days included. A model qualifies once it logs at least 50 requests from 5 or more distinct accounts, capped at 25 rows. Everything below the threshold rolls into `other`, which means `rows` may be empty on quiet windows. The client breakdown follows the same token sort and minimum-activity folding rules.

## Order book

Order book figures appear only on networks where the order book contract is deployed. Because the book holds sell listings only, it reports a best ask price and no bid-ask spread.

Allowed listing tiers span 0.50 to 1.00 bridged USDC in 0.05 increments, and listings never expire on their own. Cancelled and completely filled quantities are excluded from active depth.

Call `GET /api/stats/orderbook` for additional external-volume metrics. Those figures omit self-fills as well as routed fills whose paying wallet cannot be attributed.

To get an actionable live quote, type an amount into [Add credit](https://heyely.si/credit?step=add). Read [Order book](https://heyely.si/docs/concepts/inference#order-book) for matching priority and limits, or [Selling](https://heyely.si/docs/concepts/inference#selling) to place a listing.

## Rewards

Holder rewards totals live under the `rewards` object in the network payload. On-chain balances match `backing.block_number`, while indexed metrics cover blocks up to `rewards.through_block`. Before indexing catches up to a range, `through_block` and the indexed counters remain `null`.

| Field                                      | Meaning                                                                   | Source                                        |
| ------------------------------------------ | ------------------------------------------------------------------------- | --------------------------------------------- |
| `inference_allocated_on_chain`             | Cumulative credit tokens credited inside HeyEly's launch token ledger     | On chain                                      |
| `inference_unallocated`                    | Credit tokens that a flush would distribute to holders right now          | Flush simulation                              |
| `weth_pending`                             | Wrapped native `HYPE` gas fee queued inside the pool, in 18-decimal units | Same simulation                               |
| `epochs`, `last_epoch`                     | Count of completed fee flushes and details of the most recent flush       | Indexed `Flushed` events                      |
| `inference_harvested`, `inference_claimed` | Credit tokens credited in and claimed out from launch token logs          | Indexed `RewardNotified` and `Claimed` events |
| `current_holders`                          | Active holders of HeyEly's launch token, excluding system addresses       | Indexed transfers                             |

Because `inference_allocated_on_chain` and `inference_harvested` come from separate sources, they can differ slightly, and one may be `null` while the other is populated.

Read [Holder rewards](https://heyely.si/docs/concepts/rewards) for eligibility criteria, claim methods, and on-chain verification steps.
