swap-sol
Creates an unsigned transaction for the best possible swap through the specified tokens provided by Pump.fun.
Request
Method:
Parameters:
Parameter
Type
Description
Request example:
curl -X 'POST' \
-H "Authorization: $AUTH_HEADER" \
-H 'Content-Type: application/json' \
'https://pump-ny.solana.dex.blxrbdn.com/api/v2/pumpfun/swap-sol' \
-d '{
"userAddress": "9VUYmJa8NAB8uDe9P9aiFw3DEfezdkg5P5nQH6gcK5Kq",
"bondingCurveAddress": "BcVzydVqA4C9c3u4NJhkJZs3BBkqzwa2cqAkMUqfgHV9",
"tokenAddress": "Ds37SDZNukQj1aQYKgyWDkDz5xvpNx7PhiwE58TApump",
"creator": "JBYTEiKue7TdNMWtSKUZwyyRpHpTV9UKgkioQP4JttPn"
"solAmount": 1
"slippage" : 1
}'Response:
Fields:
Field
Type
Description
Parameter
Description
Example:
Last updated