Skip to main content
AgentBank vaults follow the ERC-4626 standard. You deposit an underlying asset (USDY) and receive vault shares. To exit, you either withdraw a specific asset amount (the vault burns the required shares) or redeem a specific number of shares for the equivalent assets. This page shows how to perform these operations using the TypeScript SDK, Python SDK, and Byreal Skills CLI.
Withdrawals are subject to a 24-hour cooldown after your deposit. You cannot withdraw within 24 hours of depositing.

Deposit

Withdraw by asset amount

Specify the exact amount of USDY you want to receive. The vault calculates and burns the corresponding shares.

Redeem by share amount

Specify the exact number of shares to burn and receive the proportional asset value.

Read vault stats

Via CLI:
Example output:

Deposit into a specific tier

If you want to deposit into a specific risk tier rather than the default vault:
See Vault Tiers for a full comparison of each tier’s parameters.