Swap
Get best swap quote
Finds the best swap route and calculates the optimal quote for a token swap across available pools.
Body
amountinteger · int64RequiredExample:
Token amount
1000000input_mintstringRequiredExample:
Input token mint address
ATLASXmbPQxBUYbxPsV97usA3fPQYEqzQBUHgiFCUsXxoutput_mintstringRequiredExample:
Output token mint address
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1vslippage_bpsinteger · int64RequiredExample:
Slippage in basis points
50swap_modestring · enumRequiredPossible values:
Responses
200
Quote
application/json
500
Internal server error.
post
/api/best_quote/Swap tokens
Executes a token swap in the specified pool. Returns transaction for user to sign.
Body
amm_config_indexinteger · int32RequiredExample:
AMM configuration index
16amountinteger · int64RequiredExample:
Token amount
1000000input_mintstringRequiredExample:
Input token mint address
ATLASXmbPQxBUYbxPsV97usA3fPQYEqzQBUHgiFCUsXxoutput_mintstringRequiredExample:
Output token mint address
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1vslippage_bpsinteger · int64RequiredExample:
Slippage in basis points
50swap_modestring · enumRequiredPossible values:
user_walletstringRequiredExample:
User wallet address
EQdJjaPwUL6X3GjUp3ZQ1T3QA4XL9g9v3Z6rSUMGALMtResponses
200
Swap
application/json
500
Internal server error.
post
/api/swap/Last updated