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
curl --location 'https://pump-ny.solana.dex.blxrbdn.com/api/v2/pumpfun/amm/swap' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: $AUTH_HEADER' \
--data '{
"ownerAddress": "3RshvockaPKfPYZzsr6oxphcjQRbdhzCmQ11LSNxqkb2",
"inToken": "So11111111111111111111111111111111111111112",
"outToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"pool": "Gf7sXMoP8iRw4iiXmJ1nq4vxcRycbGXy5RL8a8LnTd3v",
"inAmount": 0.01,
"slippage": 1,
"computeLimit": 130000,
"computePrice": 100000,
"tip": 10000
}'{
"transactions":[{
"content":"AQAA...AAA==",
"isCleanup":false
}],
"buyQuoteAmountIn":0.009970089,
"buyUserQuoteAmountIn":0.01,
"buyMaxQuoteAmountIn":0.0101,
"buyBaseAmountOut":1.722171,
"sellBaseAmountIn":0,
"sellMinQuoteAmountOut":0,
"sellQuoteAmountOut":0,
"sellUserQuoteAmountOut":0,
"fees":[{
"amount":0.000029911,
"mint":"So11111111111111111111111111111111111111112",
"percent":0.3
}]
}