Skip to main content

createBuyPtInstruction

Builds a raw instruction to buy PT tokens using base assets. This instruction handles SY minting from the base asset internally via remaining accounts, making it a convenience wrapper that combines the mint-SY and buy-PT steps into a single instruction.

Usage

Accounts

Args

Returns

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