swap-instructions
Creates Jupiter swap instruction which can be used to build a transaction. Internally, this uses the return of Jupiter Quote to generate instructions.
Request
Method:
Parameters:
Parameter
Type
Description
Request example:
curl -X 'POST' \
-H "Authorization: $AUTH_HEADER" \
-H 'Content-Type: application/json' \
'https://ny.solana.dex.blxrbdn.com/api/v2/jupiter/swap-instructions' \
-d '{
"ownerAddress": "AFT8VayE7qr8MoQsW3wHsDS83HhEvhGWdbNSHRKeUDfQ",
"inToken": "SOL",
"outToken": "USDC",
"inAmount": 0.1,
"slippage": 0.001
"computePrice": 2000,
"tip": 2000,
}'wscat --header "Authorization: $AUTH_HEADER"
-c wss://ny.solana.dex.blxrbdn.com/ws
--execute '{"jsonrpc": "2.0", "id": 1,
"method": "PostTradeSwap",
"params": {"Owner": "2JJQHAYdogfB1fE1ftcvFcsQAXSgQQKkafCwZczWdSWd",
"inToken": "USDC",
"outToken":"SOL",
"inAmount": 0.1,
"slippage": 5,
"computePrice": 2000,
"tip": 1500,
"project": "P_JUPITER"}}'Response:
Fields:
Field
Type
Description
Field
Type
Description
Field
Type
Description
Field
Type
Description
Field
Type
Description
Field
Type
Description
Example:
Last updated