Jupiter (Aggregator)

/getprice

Returns the swap quoatation for the given token pair.

GET https://api.expand.network/dex/getprice

Query Parameter

Name TypeDescription

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.

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

Name TypeDescription

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.

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

NameTypeDescription

rpc

String

Remote procedural call URL.

dexId*

String

Refer to the DEX ID page for details.

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

NameTypeDescription

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

{
    "dexId": "2600",
    "from": "6r3DSYWNRw437o6cZfe9CnygqoeFDZbnxiqf5xhFMMD9",
    "amountIn": "10000",
    "path": [
        "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
        "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
    ],
    "slippage": "10"
}

Last updated