Skip to main content

createBuyPtInstruction

Buys PT tokens from base assets in a single atomic operation. This is an alias for the buyPt instruction which handles the base-to-SY conversion internally via CPI remaining accounts. The caller supplies base tokens and receives PT directly, without needing to manually mint SY first.

Usage

Accounts

Args

Returns

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