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 →
Parameter | Type | Description | Optional |
---|---|---|---|
vaultId | string | The ID of the vault to retrieve | false |
← 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
}