Skip to main content

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. Call loadVaultPrice to get current oracle prices and compute TVL:

Set Up a Wallet

For Node.js environments, create a wallet adapter from a keypair:
Never commit private keys to version control. Use environment variables or a secure key management solution.

Create a Vault

The 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

After locking, the rebalance is processed: price updates, auctions, and minting. Any wallet may execute these stage methods directly; keeper is an actor role, not a privilege role. See Rebalancing for the full flow.

Common Use Cases

Next Steps