> ## Documentation Index
> Fetch the complete documentation index at: https://docs.codex.io/llms.txt
> Use this file to discover all available pages before exploring further.

# getNetworkStats

> Returns metadata for a given network supported on Codex.

<div data-generated>
  ## GraphQL

  ```
  type Query {
    getNetworkStats(
      networkId: Int!
      exchangeAddress: String
    ): GetNetworkStatsResponse
  }

  type GetNetworkStatsResponse {
    volume24: Float!
    volume12: Float!
    volume4: Float!
    volume1: Float!
    volume5m: Float!
    volumeChange24: Float!
    volumeChange12: Float!
    volumeChange4: Float!
    volumeChange1: Float!
    volumeChange5m: Float!
    liquidity: Float!
    transactions24: Int!
    transactions12: Int!
    transactions4: Int!
    transactions1: Int!
    transactions5m: Int!
  }
  ```
</div>

### Example

<a href="/explore" target="_blank" rel="noopener noreferrer">Test this query in the Explorer →</a>

```graphql theme={null}
{
  getNetworkStats(networkId: 1399811149) {
    volume24
    volumeChange24
    liquidity
    transactions24
    transactions1
  }
}
```
