Vault quickstart
Find an open Volo vault that accepts SUI, build a deposit request and simulate it before anything is signed.
This script lists vaults, picks an open Volo vault that accepts SUI, builds a deposit request for its minimum and simulates it against mainnet. It never signs, so you can run it with any address that holds the minimum plus gas.
Install the SDK
Install the vault SDK and the Sui TypeScript SDK it builds on. The examples use ES modules and top-level await.
npm install @naviprotocol/vault@0.1.0 @mysten/sui@2.39.1Set up a client and owner
The gRPC client is used for simulation. owner is the address that holds the deposit coin, receives the receipt and signs later.
Find a vault
getVaults reads every vault from the NAVI open API. Keep Volo-source vaults that are open and accept SUI. minInvestment is the smallest deposit the vault accepts, in coin units.
Build the deposit request
Pass the amount as a decimal string in units of the deposit coin. depositPTB selects the owner’s coins, adds the request and transfers the receipt back to the owner. For a Volo vault it returns a requestId handle instead of shares, because shares are only issued at settlement.
The SDK checks the vault is open and the amount is within its minimum and capacity before it builds anything.
Simulate before signing
simulateTransaction runs the transaction against current chain state without submitting it. Then sign and execute the same tx with the user’s wallet. The deposit stays pending until the vault’s settlement window.
import { SuiGrpcClient } from '@mysten/sui/grpc';
import { Transaction } from '@mysten/sui/transactions';
import { depositPTB, getVaults } from '@naviprotocol/vault';
const client = new SuiGrpcClient({
network: 'mainnet',
baseUrl: 'https://fullnode.mainnet.sui.io:443',
});
// The address that will sign. It must hold the deposit amount plus gas.
const owner = process.env.SUI_ADDRESS!;
// Volo vaults that accept SUI and are open for deposits
const vaults = await getVaults();
const vault = vaults.find(
(v) => v.source === 'volo' && v.status === 'open' && v.assets.baseCoin.symbol === 'SUI',
);
if (!vault) throw new Error('No open Volo SUI vault');
console.log(vault.name, 'minimum', vault.minInvestment, 'SUI');
// Build a deposit request for the vault's minimum, in SUI
const tx = new Transaction();
tx.setSender(owner);
const { requestId } = await depositPTB(tx, vault, owner, String(vault.minInvestment));
const result = await client.core.simulateTransaction({ transaction: tx });
if (result.$kind === 'FailedTransaction') {
throw new Error(`Simulation failed: ${result.FailedTransaction.status.error?.message}`);
}
console.log('Deposit request simulated; requestId handle:', Boolean(requestId));Run it
SUI_ADDRESS=0xYOUR_ADDRESS npx tsx deposit.tsSample output, verified on December 1, 2026. The first open Volo SUI vault returned by the API can change:
SUI LST NAVI SINGLE LOOP minimum 3 SUI
Deposit request simulated; requestId handle: trueThe amount is below minInvestment or above the vault’s remaining capacity. Choose a different amount. See Errors.
The owner does not hold enough of the deposit coin. Check the address and the vault’s assets.baseCoin.coinType.
The vault is not accepting deposits right now, for example during a fixed-term lockup. Pick a vault whose status is open.