getNetworkBars returns one network’s activity as a time series, one bar per hour or per UTC day. Use it to chart how a chain’s volume, trades, traders, new tokens, liquidity and stablecoin supply change over time. For a single “right now” snapshot across many networks, use filterNetworks instead.
Use this data for
- Network charts. Plot daily volume, trades or active traders for a chain on a dashboard or network page.
- Comparing chains over time. Call it once per network with the same range and resolution, and line the bars up by
timestamp. - Growth tracking. Follow
tokensCreated,tradersandstablecoinSupplyUsdday by day to see whether a chain is gaining or losing activity.
Returns
NetworkBarsResponse!
Arguments
NetworkBarsInput!
required
Input parameters used to select a network, resolution and range.
See NetworkBarsInput
Example
Test this query in the Explorer → Daily bars for Solana on November 7 and 8, 2026:Usage Guidelines
resolutionishour1orday1. Daily bars follow UTC days.- One request can cover at most 200 bars (about 8 days of
hour1bars, or 200 days ofday1bars). A wider range returns anOUT_OF_RANGEerror. Page through longer ranges with several requests. timestampis the start of the bar. A bar is returned only after its hour or day has closed, so the current hour or day is not included.- History starts in November 2026: the first
hour1bar is 2026-11-06 19:00 UTC and the firstday1bar is 2026-11-07. Earlier ranges return no bars for that period. - An hour or day with no recorded data has no bar, so do not assume bars are evenly spaced. An unknown
networkIdreturns an emptybarslist, not an error. swapscounts each pool a trade touches, so a trade routed through two pools is two swaps.tradescounts that trade once. Usetradesfor “number of trades” charts.traders24handtokensTraded24hare rolling 24-hour counts ending at the bar’s close. Onday1bars they matchtradersandtokensTraded.- Nullable fields are null when Codex could not count that stat for the whole bar.
tradersandtokensTradedare null on bars before 2026-11-07 21:00 UTC (hourly) and 2026-11-07 (daily). volumeUsd,liquidityUsdandstablecoinSupplyUsdare strings. Parse them as decimals.- See the full list of network IDs on Networks.