import { GetEvmChainMetricsRequest } from "@avalabs/avacloud-sdk/models/operations";
let value: GetEvmChainMetricsRequest = {
metric: "activeAddresses",
startTimestamp: 1689541049,
endTimestamp: 1689800249,
timeInterval: "day",
chainId: "43114",
};
Field | Type | Required | Description | Example |
---|---|---|---|---|
metric |
components.ChainMetric | ✔️ | Which chain level metric to fetch. | activeAddresses |
startTimestamp |
number | ➖ | Query param for retrieving items after a specific timestamp. | 1689541049 |
endTimestamp |
number | ➖ | Query param for retrieving items before a specific timestamp. | 1689800249 |
timeInterval |
components.TimeIntervalGranularity | ➖ | Time interval granularity for data aggregation. Metrics prefixed with "cumulative", "max", or "avg" only support timeInterval equal to "day". |
day |
pageToken |
string | ➖ | A page token, received from a previous list call. Provide this to retrieve the subsequent page. | |
pageSize |
number | ➖ | The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 2160. | 10 |
chainId |
string | ➖ | A supported EVM chain ID or one of "total", "mainnet", or "testnet". Use the /chains endpoint to get a list of supported chain IDs. |
43114 |