Dex - Swap
Swap parameters including input token, output token, amount and slippage
Documentation Index
Fetch the complete documentation index at: https://docs.chainstream.io/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
A chain name listed in supported networks
sol, bsc, eth Body
DEX identifier for the trade
jupiter, kyberswap, raydium, pumpfun, moonshot, candy, launchpad "jupiter"
Public key of the wallet initiating the transaction
8 - 64"oQPnhXAbLbMuKHESaGrbXT17CyvWCpLyERSJA9HCYd7"
Amount to swap. Use "auto" for full balance or percentage like "50%"
"1000000000"
Swap direction mode
ExactIn, ExactOut "ExactIn"
Slippage tolerance percentage
0 <= x <= 10010
Priority fee in SOL to increase transaction processing speed
"1000"
DEX pool address
"58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2"
Input token mint address
Output token mint address
Response
Base64 encoded transaction
"AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDRgYGpQEDAQIABQcICQoLDA0ODwAAAAAAAAAAAAAQERITFBUWFxgZGhscHR4fAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
Time taken to process the request in milliseconds
245

