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 →
Parameter | Type | Description | Optional |
---|---|---|---|
gatewayAddress | string - WalletAddress | The wallet address of the gateway | false |
← 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
}
}