Solana Swaps
KyberSwap Aggregator Solana APIs
Download OpenAPI specification:
Solana swap APIs
Retrieve the information about a Swap between 2 tokens.
Address of the input token.
Example: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1vAddress of the output token.
Example: Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYBAmount of the input token (in wei).
Example: 10000000000000
10000000000000DEX IDs included in the route, separated by comma. Example: kyberswap, kybberswapv2
This is the amount of slippage the user can accept for his trade. The unit is bps. The value is in ranges [0, 2000], 10 means 0.1%. Default value is 50/10000 ~ 0.5%.
200Address to receive the output token
Example: 5Ba2nY9QuLVJ1Ct56k42tFJQQauujJPPPTXyC3kURV66
5Ba2nY9QuLVJ1Ct56k42tFJQQauujJPPPTXyC3kURV66Deployed program.
Example: 8Q9k9zEBQR8LwEFo77uWCe4HWU2xXGxjM7aecsf7FLMJ
8Q9k9zEBQR8LwEFo77uWCe4HWU2xXGxjM7aecsf7FLMJString to present to your client.
Example: yourCompanyNameHere
%7B%22source%22%3A%22kyberswap%22%7DSuccessful response
Successful response
Encode the swap route to be sent to the KyberSwap Aggregator smart contract.
Base58 token address of the input token.
Example: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1vBase58 token address of the output token.
Example: Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYBAmount of the input token (in wei): amountIn * tokenDecimal
Example: 10000000000000
10000000000000Optional.
Dex array, split by ",".
Example: OrcaV2, RaydiumV4
Allowed DEX values: OrcaV2,Serum,RaydiumV5,WhirlPool,Saber,RaydiumV4,Mercurial,GooseFx Note: empty value is implicit as using all dexes.
This is the amount of slippage the user can accept for his trade. The unit is bps. The value is in ranges [0, 2000], 10 means 0.1%. Default value is 50/10000 ~ 0.5%.
200Address to receive the output token
Example: 5Ba2nY9QuLVJ1Ct56k42tFJQQauujJPPPTXyC3kURV66
5Ba2nY9QuLVJ1Ct56k42tFJQQauujJPPPTXyC3kURV66Deployed program.
Example: 8Q9k9zEBQR8LwEFo77uWCe4HWU2xXGxjM7aecsf7FLMJ
8Q9k9zEBQR8LwEFo77uWCe4HWU2xXGxjM7aecsf7FLMJString to present to your client.
Example: yourCompanyNameHere
%7B%22source%22%3A%22kyberswap%22%7DSuccessful response
Successful response
Last updated
Was this helpful?