Skip to main content

Raw Instructions

These are the low-level instruction builders generated by Codama from the Exponent CLMM program IDL. They provide direct access to every onchain instruction, requiring you to manually resolve all accounts and serialize arguments.
For most use cases, prefer the higher-level MarketThree Instructions which handle account resolution, address lookup tables, and CPI routing automatically.

Installation

npm install @exponent-labs/exponent-sdk @solana/web3.js @solana/codecs
All raw instructions are imported from the generated client:
import {
  createInitializeMarketInstruction,
  createDepositLiquidityInstruction,
  createTradePtInstruction,
  // ...
} from "@exponent-labs/exponent-sdk/client/clmm";

Core Instructions

Trading Instructions

Wrapper Instructions

These instructions combine multiple operations atomically (e.g., minting SY and providing liquidity in one transaction).

Farm Instructions