Skip to main content
This page is based on the local vault-sdk/ts-client source for @meteora-ag/vault-sdk.

Dependencies

Program IDs And URLs

Important Constants

VaultImpl.create

Creates one hydrated vault client from an underlying token mint. It derives the vault PDA, fetches vault state, fetches the LP mint, and fetches the underlying token mint.

Static Methods

Instance Properties

Instance Methods

withdraw passes its baseTokenAmount parameter as the program’s LP unmint_amount. Use LP token units, not underlying token units.

Helper Exports

Utility Exports

deserializeAccount and deserializeMint are defined in the source utilities but are not exported from the package root in the current ts-client/index.ts.

SOL Handling

Affiliate Support

When affiliateId is passed to create, the SDK initializes an affiliate program client and changes user balance, deposit, and withdraw account planning.

Integration Notes