Skip to main content

createWithdrawLiquidityInstruction

Builds a raw instruction to withdraw liquidity from an LP position and claim accumulated fees. This removes a specified amount of liquidity from the position, returning PT and SY tokens to the owner along with any accrued trading fees.

Usage

Accounts

Args

Returns

TransactionInstruction — a transaction instruction ready to be added to a transaction.