Transaction to execute a creation, redemption, or swap.
This is a wrapper around PoolInstructions.execute that handles token delegation.
The transaction will create a temporary account, delegate tokens to it, and use it in place of the actual owner, to limit the quantity of tokens that the pool can pull from the user's accounts.
Pool to interact with.
Creation, redemption, or swap.
Token accounts to pull funds from or send funds to.
Expected basket. Used to determine the quantity of tokens to approve.
Transaction to get a pool basket, for use with simulateTransaction.
This is a wrapper around PoolInstructions.getBasket that handles initializing the retbuf account.
Pool to interact with.
Creation, redemption, or swap.
Payer for fees. Must have nonzero SOL but will not be charged if the transaction is only simulated.
Transaction to initialize a simple pool.
This will:
Generated using TypeDoc
High-level API for constructing transactions to interact with pools.
For a lower-level API, see PoolInstructions.