Jupiter (Aggregator)
/getprice
Returns the swap quoatation for the given token pair.
GET
https://api.expand.network/dex/getprice
Query Parameter
rpc
String
Remote procedural call URL.
path*
String
Comma separated values of token addresses/token symbol whose price is to be fetched.
amountIn*
String
Amount of token.
https://api.expand.network/dex/getprice?dexId=2600&path=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v%2CEs9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB&amountIn=100000
/getroute
Retrieves the route details for a swap for a given token pair.
GET
https://api.expand.network/dex/getroute
Query Parameter
rpc
String
Remote procedural call URL.
path*
String
Comma separated values of token addresses/token symbol whose price is to be fetched.
amountIn*
String
Amount of token.
https://api.expand.network/dex/getroute?dexId=2600&path=DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263%2CHhJpBhRRn4g56VsyLuT8DL5Bv31HkXqsrahTTUCZeZg4&amountIn=100000000000000
/getliquiditysources
Retrieves the liquidity sources on Jupiter
GET
https://api.expand.network/dex/getliquiditysources
Query Parameter
rpc
String
Remote procedural call URL.
https://api.expand.network/dex/getliquiditysources?dexId=2600
/swap
Initiate a swap on the Solana network leveraging Jupiter.
POST
https://api.expand.network/dex/swap
Request Body
rpc
String
Remote procedural call URL.
path*
String
Comma-separated values of token addresses/token symbol, inside an array, to swap.
amountIn*
String
Amount of token to be swapped.
from*
String
Address of the sender of the token.
slippage*
String
Percentage of total swap value. By default, 1.
0 <= slippage value <= 100
{
"dexId": "2600",
"from": "6r3DSYWNRw437o6cZfe9CnygqoeFDZbnxiqf5xhFMMD9",
"amountIn": "10000",
"path": [
"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
],
"slippage": "10"
}
Last updated