curl --request POST \
--url https://de.raze.sh/swap/sol/instructions \
--header 'Content-Type: application/json' \
--data '
{
"wallet": "62ThHC1rs2GUfa8J4Qjcj5GD2MSL2d65pcJtenNieDnm",
"inputMint": "So11111111111111111111111111111111111111112",
"outputMint": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
"amount": 1000000000,
"swapMode": "exactIn",
"slippageBps": 500,
"feeTipLamports": 1000000
}
'{
"success": true,
"instructions": [
{
"programId": "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8",
"data": "AQAAAA...",
"accounts": [
{
"pubkey": "62ThHC1rs2GUfa8J4Qjcj5GD2MSL2d65pcJtenNieDnm",
"isSigner": true,
"isWritable": true
}
]
}
],
"addressLookupTableAddresses": [
"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM"
]
}curl --request POST \
--url https://de.raze.sh/swap/sol/instructions \
--header 'Content-Type: application/json' \
--data '
{
"wallet": "62ThHC1rs2GUfa8J4Qjcj5GD2MSL2d65pcJtenNieDnm",
"inputMint": "So11111111111111111111111111111111111111112",
"outputMint": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",
"amount": 1000000000,
"swapMode": "exactIn",
"slippageBps": 500,
"feeTipLamports": 1000000
}
'{
"success": true,
"instructions": [
{
"programId": "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8",
"data": "AQAAAA...",
"accounts": [
{
"pubkey": "62ThHC1rs2GUfa8J4Qjcj5GD2MSL2d65pcJtenNieDnm",
"isSigner": true,
"isWritable": true
}
]
}
],
"addressLookupTableAddresses": [
"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM"
]
}Payer wallet public key
"62ThHC1rs2GUfa8J4Qjcj5GD2MSL2d65pcJtenNieDnm"
Input token mint address
"So11111111111111111111111111111111111111112"
Output token mint address
"DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"
Amount in input token base units (lamports for SOL)
1000000000
Swap mode — exactIn or exactOut
exactIn, exactOut 0 <= x <= 10000500
Wallet to receive tip (auth only)
Tip amount in lamports (auth only)
5000
Wallet to receive fee (auth only)
Fee in basis points (auth only)
50
Public shorthand for tip + fee
1000000