getVault

getVault is a method on the ARIO class that retrieves detailed information about a specific vault using its ID.

getVault does not require authentication.

Parameters

← Swipe to see more →
ParameterTypeDescriptionOptional
vaultIdstringThe ID of the vault to retrievefalse
← Swipe to see more →

Examples

getVault

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

async function main() {
  const ario = ARIO.init();
  const vault = await ario.getVault({
    vaultId: 'vault_123'
  });

  console.log(vault);
}

main();

Output

{
  "vaultId": "vault_123",
  "balance": 1000000000,
  "startTimestamp": 1726243200000,
  "endTimestamp": 1726329600000
}

Was this page helpful?