@meteora-ag/vault-sdk when building an off-chain app, backend service, or script that needs to read Dynamic Vault state or build deposit and withdrawal transactions.
Vault SDK Repository
Public TypeScript SDK source, tests, IDL, and Rust client helper.
NPM Package
Published
@meteora-ag/vault-sdk package.Install
- npm
- pnpm
- yarn
@solana/web3.js v1 transaction model.
Create A Client
VaultImpl.create takes a token mint public key. For SOL, use NATIVE_MINT from @solana/spl-token.
Read Vault State
getWithdrawableAmount() computes the unlocked vault amount from on-chain time and vaultState.lockedProfitTracker. It is the client-side equivalent of the program’s get_unlocked_amount simulation flow.
Deposit
deposit returns an unsigned Transaction with ATA setup and SOL wrapping instructions when needed.
Withdraw
withdraw expects the LP token amount to burn. Use getUserBalance or getUnmintAmount to choose the LP amount.
Affiliate Initialization
Affiliate partners passaffiliateId when creating the vault client. Deposits and withdrawals then route through the affiliate program wrapper.

