Skip to main content
Raw instructions are low-level createXxxInstruction functions generated from the program IDL. They build a single TransactionInstruction with explicit accounts and args — no PDA derivation, no default values. Use raw instructions when you need full control over account resolution, or when building custom transaction flows. For higher-level helpers with automatic PDA derivation, see the TypeScript SDK sections.

Import

All raw instructions are exported from the client/vaults path:
import {
  createDepositLiquidityInstruction,
  createQueueWithdrawalInstruction,
  // ...
} from "@exponent-labs/exponent-sdk/client/vaults";

Instructions

InstructionDescription
Deposit LiquidityDeposit tokens and receive LP tokens
Queue WithdrawalLock LP tokens and create a withdrawal request
Execute WithdrawalReceive underlying tokens after withdrawal is filled
Cancel WithdrawalCancel a queued withdrawal and reclaim LP tokens