Dex - Swap
Swap parameters including input token, output token, amount and slippage
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
, base
Body
DEX identifier for the trade
raydium
, meteora
, pumpfun
, moonshot
, jupiter
"raydium"
Public key of the wallet initiating the transaction
8 - 64
"HN7cABqLq46Es1jh92dQQisAq662SmxELLLsHHe4YWrH"
Amount to swap. Use "auto" for full balance or percentage like "50%"
"1000000000"
Swap direction mode
ExactIn
, ExactOut
"ExactIn"
Slippage tolerance percentage
0 <= x <= 100
10
Priority fee in SOL to increase transaction processing speed
"0.000001"
DEX pool address
8 - 64
"58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2"
Input Mint, the base token address
Ouput Mint, the quote token address
Response
Base64 encoded transaction
"AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDRgYGpQEDAQIABQcICQoLDA0ODwAAAAAAAAAAAAAQERITFBUWFxgZGhscHR4fAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
Time taken to process the request in milliseconds
245