getTokenSupply
getTokenSupply
is a method on the ARIO
class that retrieves the total supply of tokens, returned in mARIO. The total supply includes the following:
total
- the total supply of all tokenscirculating
- the total supply minus locked, withdrawn, delegated, and stakedlocked
- tokens that are locked in the protocol (a.k.a. vaulted)withdrawn
- tokens that have been withdrawn from the protocol by operators and delegatorsdelegated
- tokens that have been delegated to gatewaysstaked
- tokens that are staked in the protocol by gateway operatorsprotocolBalance
- tokens that are held in the protocol's treasury. This is included in the circulating supply.
getTokenSupply
does not require authentication.
Parameters
getTokenSupply
does not accept Parameters
Examples
getInfo
const { ARIO } = require('@ar.io/sdk');
async function main(){
const ario = ARIO.init();
const info = await ario.getTokenSupply()
console.log(info)
}
main()
Output
{
"total": 1000000000000000000,
"circulating": 998094653842520,
"locked": 0,
"withdrawn": 560563387278,
"delegated": 1750000000,
"staked": 1343032770199,
"protocolBalance": 46317263683761
}
Types
AOTokenSupplyData
{
"total": 1000000000000000000,
"circulating": 998094653842520,
"locked": 0,
"withdrawn": 560563387278,
"delegated": 1750000000,
"staked": 1343032770199,
"protocolBalance": 46317263683761
}