Javascript
import { Avalanche } from "@avalanche-sdk/chainkit"; const avalanche = new Avalanche({ network: "mainnet", }); async function run() { const result = await avalanche.data.primaryNetwork.getNetworkDetails({}); console.log(result); } run();
{ "validatorDetails": { "validatorCount": 123, "totalAmountStaked": "<string>", "estimatedAnnualStakingReward": "<string>", "stakingDistributionByVersion": [ { "version": "<string>", "amountStaked": "<string>", "validatorCount": 123 } ], "stakingRatio": "<string>" }, "delegatorDetails": { "delegatorCount": 123, "totalAmountStaked": "<string>" } }
Gets network details such as validator and delegator stats.
Api keys provide higher access to rate limits. To obtain an api key, sign up for an account at https://avacloud.io/.
Either mainnet or testnet/fuji.
mainnet
fuji
testnet
Successful response
Show child attributes
Total potential rewards from currently active validations and delegations.
AvalancheGo version for the validator node.
The total amount staked by validators using this version.
The number of validators using this version.
Ratio of total active stake amount to the current supply.
Was this page helpful?