Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 4.67 KB

getstakingmetricsrequest.md

File metadata and controls

26 lines (21 loc) · 4.67 KB

GetStakingMetricsRequest

Example Usage

import { GetStakingMetricsRequest } from "@avalabs/avacloud-sdk/models/operations";

let value: GetStakingMetricsRequest = {
  metric: "validatorCount",
  startTimestamp: 1689541049,
  endTimestamp: 1689800249,
  network: "mainnet",
};

Fields

Field Type Required Description Example
metric components.NetworkMetric ✔️ Which network level metric to fetch. validatorCount
startTimestamp number Query param for retrieving items after a specific timestamp. 1689541049
endTimestamp number Query param for retrieving items before a specific timestamp. 1689800249
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
network components.GlobalParamNetwork Either mainnet or testnet/fuji. mainnet
subnetId any The subnet ID to filter by. If not provided, then all subnets will be returned. 11111111111111111111111111111111LpoYY