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{
"status": 200,
"msg": "success",
"data": {
"amountIn": "100000",
"path": [
"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"
],
"amountsOut": [
"100000",
"100404"
]
}
}/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.
/getliquiditysources
Retrieves the liquidity sources on Jupiter
GET https://api.expand.network/dex/getliquiditysources
Query Parameter
rpc
String
Remote procedural call URL.
/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
Last updated

