getGatewayVaults

getGatewayVaults is a method on the ARIO class that retrieves all vault information for a specific gateway, including delegated stakes and pending withdrawals.

getGatewayVaults does not require authentication.

Parameters

← Swipe to see more →
ParameterTypeDescriptionOptional
gatewayAddressstring - WalletAddressThe wallet address of the gatewayfalse
← Swipe to see more →

Examples

getGatewayVaults

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

async function main() {
  const ario = ARIO.init();
  const vaults = await ario.getGatewayVaults({
    gatewayAddress: 't4Xr0_J4Iurt7caNST02cMotaz2FIbWQ4Kbj616RHl3'
  });

  console.log(vaults);
}

main();

Output

{
  "t4Xr0_J4Iurt7caNST02cMotaz2FIbWQ4Kbj616RHl3": {
    "balance": 1000000000,
    "start": 1726243200000,
    "end": 1726329600000
  },
  "anotherAddress": {
    "balance": 500000000,
    "start": 1726243200000,
    "end": 1726329600000
  }
}