Granite Upgrade Activates in11d:16h:54m:36s
Chain Metrics

Get rolling window metrics for EVM chains

Gets the rolling window metrics for an EVM chain for the last hour, day, week, month, 90 days, year, and all time. Active addresses/active senders only support last hour, day, and week.

GET
/v2/chains/{chainId}/rollingWindowMetrics/{metric}

Path Parameters

metricstring

Which chain level metric to fetch for the rolling window.

Value in"gasUsed" | "txCount" | "avgGps" | "maxGps" | "avgTps" | "maxTps" | "avgGasPrice" | "maxGasPrice" | "feesPaid" | "contracts" | "deployers" | "activeAddresses" | "activeSenders"
chainIdstring

A supported EVM chain ID or one of "total", "mainnet", or "testnet". Use the /chains endpoint to get a list of supported chain IDs.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://metrics.avax.network/v2/chains/43114/rollingWindowMetrics/txCount"
{
  "result": {
    "lastHour": 0,
    "lastDay": 0,
    "lastWeek": 0,
    "lastMonth": 0,
    "last90Days": 0,
    "lastYear": 0,
    "allTime": 0
  }
}
{
  "message": "string",
  "statusCode": 400,
  "error": "Bad Request"
}
{
  "message": "string",
  "statusCode": 401,
  "error": "Unauthorized"
}
{
  "message": "string",
  "statusCode": 403,
  "error": "Forbidden"
}
{
  "message": "string",
  "statusCode": 404,
  "error": "Not Found"
}
{
  "message": "string",
  "statusCode": 429,
  "error": "Too Many Requests"
}
{
  "message": "string",
  "statusCode": 500,
  "error": "Internal Server Error"
}
{
  "message": "string",
  "statusCode": 502,
  "error": "Bad Gateway"
}
{
  "message": "string",
  "statusCode": 503,
  "error": "Service Unavailable"
}

Is this guide helpful?