TransactionInstruction with the Orca SDK or your own client, then wrap it with orcaWhirlpoolAction before passing it to createVaultSyncTransaction.
The vault hook validates Orca Whirlpool instructions, checks vault-owned token accounts, and records opened positions so they can be included in AUM calculations.
Transaction structure
Every Orca Whirlpool action goes throughcreateVaultSyncTransaction.
Action builder parameters
EachorcaWhirlpoolAction method accepts the same parameter shape. The examples below assume you already built the Orca instruction with the Orca SDK or client.
Supported actions
Open a position
Wrap the Orca open-position instruction with the matching Orca action helper.The SDK tracks opened Orca positions for vault AUM routing. Keep using the same vault owner and vault-owned token accounts when you later modify or close the position.
Increase liquidity
UseincreaseLiquidityV2 or increaseLiquidityByTokenAmountsV2 depending on the Orca instruction you built.
Decrease liquidity
UsedecreaseLiquidityV2 when the vault should remove liquidity from a tracked Orca position.
Collect fees and rewards
UsecollectFeesV2 for trading fees and collectRewardV2 for Whirlpool rewards.
Swap
UseswapV2 when the vault should trade between the Whirlpool token pair.