This guide shows how to install and initialize the official Alpha Vault TypeScript SDK,Documentation Index
Fetch the complete documentation index at: https://docs.meteora.ag/llms.txt
Use this file to discover all available pages before exploring further.
@meteora-ag/alpha-vault.
Before you begin, here are the main resources:
TypeScript SDK
SDK source, IDL, transaction helpers, PDA helpers, Merkle tree helpers, and package metadata.
NPM Package
Published package for Alpha Vault TypeScript integrations.
Installation
Install the SDK and Solana dependencies:- npm
- pnpm
- yarn
- bun
Initialization
Load an existing Alpha Vault from its vault address:AlphaVault client class. Named exports include enums, types, PDA helpers, Merkle tree helpers, fill helpers, constants, and the IDL.
Program ID
The SDK maps clusters to these Alpha Vault program IDs:| Cluster | Program ID |
|---|---|
mainnet-beta | vaU6kP7iNEGkbmPkLmZfGwiGxd4Mob24QQCie5R9kd2 |
devnet | vaU6kP7iNEGkbmPkLmZfGwiGxd4Mob24QQCie5R9kd2 |
localhost | SNPmGgnywBvvrAKMLundzG6StojyHTHDLu7T4sdhP4k |
First Reads
Use these methods and getters before building transactions:| API | Use |
|---|---|
AlphaVault.create(connection, vaultAddress, opt?) | Fetches vault, clock, mints, and connected pool timing into an AlphaVault instance. |
alphaVault.vault | Decoded on-chain Vault account. |
alphaVault.mode | SDK VaultMode value derived from vault.vaultMode. |
alphaVault.vaultPoint | First join, last join, last buying, start vesting, and end vesting points. |
alphaVault.vaultState | Current lifecycle state from the clock and vault timing. |
alphaVault.getEscrow(owner) | Fetches the owner escrow PDA or returns null. |
alphaVault.interactionState(escrow, merkleProof?) | Computes UI-ready deposit, claim, withdrawal, and whitelist booleans. |
Reference
SDK Examples
Explore transaction flows for deposits, claims, fills, Merkle proofs, and authority-created escrows.
SDK Reference
Access the SDK method map, PDA helpers, constants, enums, and exported types.
Testing The SDK
The local SDK package usestsup for builds and Jest for tests.
Faucets
Devnet Faucet
Request test SOL for devnet integration testing.

