getTokenSupply

getTokenSupply is a method on the ARIO class that retrieves detailed token supply information for the AR.IO network, including total supply, circulating supply, locked tokens, and more.

getTokenSupply does not require authentication.

Parameters

The getTokenSupply method does not accept any parameters.

Examples

getTokenSupply

const { ARIO } = require('@ar.io/sdk');

async function main() {
  const ario = ARIO.init();
  const tokenSupply = await ario.getTokenSupply();

  console.log(tokenSupply);
}

main();

Output

{
  "total": 1000000000000000000,        // Total token supply in mARIO
  "circulating": 998094653842520,      // Tokens in circulation
  "locked": 0,                         // Tokens locked in vaults
  "withdrawn": 560563387278,           // Tokens in withdrawal
  "delegated": 1750000000,             // Tokens delegated to gateways
  "staked": 1343032770199,             // Tokens staked by operators
  "protocolBalance": 46317263683761    // Tokens held by protocol
}

Types

AOTokenSupplyData

{
  "total": 1000000000000000000,
  "circulating": 998094653842520,
  "locked": 0,
  "withdrawn": 560563387278,
  "delegated": 1750000000,
  "staked": 1343032770199,
  "protocolBalance": 46317263683761
}