route-swap
Creates an unsigned transaction for a swap along the provided route using Jupiter.
Last updated
curl --header "Authorization: $AUTH_HEADER" -X 'POST' \
'https://ny.solana.dex.blxrbdn.com/api/v2/jupiter/route-swap' \
-H 'Content-Type: application/json' \
-d '{
"ownerAddress": "AFT8...UDfQ",
"steps": [
{
"project": {
"label": "Invariant",
"id": "2SgUGxYDczrB6wUzXHPJH65pNhWkEzNMEx3km4xTYUTC"
},
"inToken": "So11111111111111111111111111111111111111112",
"outToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"inAmount": 0.1,
"outAmount": 0.000099274,
"fee": {
"amount": 0.000001,
"mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
"percent": 0.0001
}
}
]
}'