Trade API
Route swaps through Raydium pools using the Trade API
Get quote
Name
Type
Required
Description
{
"id": "cbbcc7e2-a5fa-4040-a260-b229842c93c7",
"success": true,
"version": "V1",
"data": {
"swapType": "BaseIn",
"inputMint": "So11111111111111111111111111111111111111112",
"inputAmount": "100000000",
"outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"outputAmount": "13738391",
"otherAmountThreshold": "13669699",
"slippageBps": 50,
"priceImpactPct": 0,
"referrerAmount": "0",
"routePlan": [
{
"poolId": "3nMFwZXwY1s1M5s8vYAHqd4wGs4iSxXE4LRoUMMYqEgF",
"inputMint": "So11111111111111111111111111111111111111112",
"outputMint": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
"feeMint": "So11111111111111111111111111111111111111112",
"feeRate": 1,
"feeAmount": "10000",
"remainingAccounts": [
"DDe2TojkajtXKYJEMKfjY3Xjdw1XhZqr8UEBNgrg512P",
"AWeEpV2ASCkVmcpK7htwWCqztmKMNdsmquKMa7y96Wif",
"22ps6VsrEnCwEfGX4nkFV2xz4ohpvF5aTVtSg5FcwGRn"
],
"lastPoolPriceX64": "6841151606851928973"
},
{
"poolId": "3NeUgARDmFgnKtkJLqUcEUNCfknFCcGsFfMJCtx6bAgx",
"inputMint": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
"outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"feeMint": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
"feeRate": 1,
"feeAmount": "1376",
"remainingAccounts": [
"CxPCSxEmvkTyd6tqpVcZv2QscGrzkZKBmH7R9Bs9wocT",
"9iD8oCrLQFNd1sbhYZg2awLrsZu4f1AAZG6bHuJkLXEx",
"32D4WyeYS7irtnGpVS2VYja5H8uUpc8zF24kd15oFD2o"
],
"lastPoolPriceX64": "18455174383562030500"
}
]
}
}Endpoint
Description
Serialize transaction
Name
Type
Required
Description
Priority fees
Tier
Description
Full example
Last updated
Was this helpful?