Install
Initialize the SDK
The SDK supports vault composition and token flows for both SPL and Token Extensions (
Token22) mints, and supports Pyth, Raydium CLMM, Raydium CPMM, and LST (SPL/Sanctum stake pool) oracle configurations.Fetch Vaults
Load Prices
Fetching a vault does not include live prices. CallloadVaultPrice to get current oracle prices and compute TVL:
Set Up a Wallet
For Node.js environments, create a wallet adapter from a keypair:Create a Vault
metadata_uri should point to a JSON file containing name, symbol, description, image, and cover fields. See Vaults for the full metadata spec.
After creation, the vault has no tokens. Add tokens with addOrEditTokenTx and set weights with updateWeightsTx. For Pyth oracle price feed IDs, see Pyth Price Feed IDs. See Vaults for the full workflow.
Deposit into a Vault
Common Use Cases
Next Steps
- Protocol Overview — Architecture, roles, and core concepts
- Vaults — Vault structure, creation, and configuration
- Integration Examples — End-to-end code for common use cases
- SDK Reference — Complete API documentation