amm/swap
Creates an unsigned transaction for the best possible swap by providing the specified tokens information through native swap.pump.fun liquidity pool.
Last updated
Creates an unsigned transaction for the best possible swap by providing the specified tokens information through native swap.pump.fun liquidity pool.
Last updated
This endpoint does not submit the transaction to the network.
The endpoint allows you to specify priority fees and tips to later control the transaction inclusion and propagation. Refer to the& page for additional information about these parameters.
Be aware that this endpoint is using a beta URL.
POST ./api/v2/pumpfun/swap
ownerAddress
string
Solana address which is placing swap.
inToken
string
Address of the swap-in token.
outToken
string
Address of the swap-out token.
pool
string
Specify exact which liquidity pool wants to interact with.
inAmount
double
The amount of token wants to be swapped from.
slippage
double
The maximum slippage tolerance in percentage.
computeLimit
uint64
OPTIONAL. Specifies total compute limit to be allocated for all instructions within the created tx
computePrice
uint64
OPTIONAL. Specifies compute price in Lamport (0.000001 SOL = 1,000 Lamport) to be included as a part of instruction, known as priority fee.
tip
unit64
OPTIONAL. Specifies a tip amount that will be used to pay for front-running protection or bundle submission services.