Skip to main content
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, traders and stablecoinSupplyUsd day by day to see whether a chain is gaining or losing activity.

Returns

NetworkBarsResponse!
See 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

  • resolution is hour1 or day1. Daily bars follow UTC days.
  • One request can cover at most 200 bars (about 8 days of hour1 bars, or 200 days of day1 bars). A wider range returns an OUT_OF_RANGE error. Page through longer ranges with several requests.
  • timestamp is 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 hour1 bar is 2026-11-06 19:00 UTC and the first day1 bar 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 networkId returns an empty bars list, not an error.
  • swaps counts each pool a trade touches, so a trade routed through two pools is two swaps. trades counts that trade once. Use trades for “number of trades” charts.
  • traders24h and tokensTraded24h are rolling 24-hour counts ending at the bar’s close. On day1 bars they match traders and tokensTraded.
  • Nullable fields are null when Codex could not count that stat for the whole bar. traders and tokensTraded are null on bars before 2026-11-07 21:00 UTC (hourly) and 2026-11-07 (daily).
  • volumeUsd, liquidityUsd and stablecoinSupplyUsd are strings. Parse them as decimals.
  • See the full list of network IDs on Networks.
Last modified on November 9, 2026