amm/swap
Creates an unsigned transaction for the best possible swap by providing the specified tokens information through native swap.pump.fun liquidity pool.
Request
Method:
Parameters:
Parameter
Type
Description
Request example:
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
}'Response:
Example:
Last updated