Skip to main content

Vault Instructions

These are the instruction builders provided by the Vault class. They handle account resolution, address lookup tables, and CPI routing automatically.
For low-level control, see the raw Codama-generated instructions which require manual account resolution.

Installation

npm install @exponent-labs/exponent-sdk @solana/web3.js
All instructions are methods on the Vault class:
import { Vault, LOCAL_ENV } from "@exponent-labs/exponent-sdk";

const vault = await Vault.load(LOCAL_ENV, connection, vaultAddress);

Strip & Merge

Yield Position Management

For depositing/withdrawing YT and staging yield, see the YtPosition Instructions.