Skip to main content

createSellPtInstruction

Builds a raw instruction to sell PT tokens for base assets. This instruction handles SY redemption to the base asset internally via remaining accounts, making it a convenience wrapper that combines the sell-PT and redeem-SY steps into a single instruction.

Usage

Accounts

Args

Returns

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