Jupiter (Aggregator)
/getprice
Returns the swap quoatation for the given token pair.
GET
https://api.expand.network/dex/getprice
Query Parameter
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
dexId* | String | Refer to the DEX ID page for details. |
path* | String | Comma separated values of token addresses/token symbol whose price is to be fetched. |
amountIn* | String | Amount of token. |
/getroute
Retrieves the route details for a swap for a given token pair.
GET
https://api.expand.network/dex/getroute
Query Parameter
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
dexId* | String | Refer to the DEX ID page for details. |
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
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
dexId* | String | Refer to the DEX ID page for details. |
/swap
Initiate a swap on the Solana network leveraging Jupiter.
POST
https://api.expand.network/dex/swap
Request Body
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
dexId* | String | Refer to the DEX ID page for details. |
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 <= 10 |
Last updated