Generate a buy transaction for a pro pool.
Flow: First call /quote/pro/buy to get a quote, then pass the quote_response and pool address here. The returned transaction wraps SOL, executes the swap, and unwraps remaining SOL.
Pro pool buys work identically to standard pool buys but reference the pro pool’s state account directly.
Request to create a buy transaction for a pro pool. First call Quote Pro Buy to get the quote_response, then pass it here.
Public key of the wallet that will sign and pay for the transaction.
The full quote response object from the Quote Pro Buy endpoint. Contains the calculated amounts, fees, and slippage parameters.
Arbitrary string data emitted as an on-chain event. Useful for tracking or attributing transactions.
On-chain address of the pro pool state account. Returned in the response when creating a pool.
Maximum compute units for the transaction. Higher values allow more complex operations but cost more. Defaults to a sensible value if omitted.
x >= 0Priority fee in micro-lamports per compute unit. Higher values increase transaction priority. Defaults to a sensible value if omitted.
x >= 0Optional source wallet. If different from payer, tokens will be debited from this wallet. Defaults to payer if omitted.
Base64 encoded versioned transaction. Decode, sign with the payer, and submit to the Solana network.