Below is the list of tokens we currently support for these endpoints. We are happy to add support for additional tokens upon request.
Supported Mainnet Token Pairs
steth - ETH/stETH
0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee, 0xae7ab96520de3a18e5e111b5eaab095312d7fe84
threepool - DAI/USDC/USDT
0x6b175474e89094c44da98b954eedeac495271d0f, 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, 0xdac17f958d2ee523a2206206994597c13d831ec7
FRAXsDAI - FRAX/sDAI
0x853d955acef822db058eb8505911ed77f175b99e, 0x83f20f44975d03b1b09e64809b757c47f942beea
FRAXPYUSD - FRAX/PYUSD
0x853d955acef822db058eb8505911ed77f175b99e, 0x6c3ea9036406852006290770bedfcaba0e23a0e8
frxETHWETH - WETH/frxETH
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2, 0x5e8422345238f34275888049021821e8e08caa1f
stETHng - ETH/stETH
0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee, 0xae7ab96520de3a18e5e111b5eaab095312d7fe84
fraxusdc - FRAX/USDC
0x853d955acef822db058eb8505911ed77f175b99e, 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
tricrypto2 - USDT/WBTC/WETH
0xdac17f958d2ee523a2206206994597c13d831ec7, 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599, 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
TriCryptoUSDT - USDT/WBTC/WETH
0xdac17f958d2ee523a2206206994597c13d831ec7, 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599, 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
stETHfrxETH - stETH/frxETH
0xae7ab96520de3a18e5e111b5eaab095312d7fe84, 0x5e8422345238f34275888049021821e8e08caa1f
alUSDFRAXBP - alUSD/FRAX/BASIS
0xbc6da0fe9ad5f3b0d58160288917aa56653660e9, 0x3175df0976dfa876431c2e9ee6bc45b65d3473cc
PayPool - PYUSD/USDC
0x6c3ea9036406852006290770bedfcaba0e23a0e8, 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
mkUSDUSDC - mkUSD/USDC
0x4591dbff62656e7859afe5e45f6f47d3669fbb28, 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
TriCryptoUSDC - USDC/WBTC/WETH
0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599, 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
frxeth - ETH/frxETH
0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee, 0x5e8422345238f34275888049021821e8e08caa1f
OETH - ETH/OETH
0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee, 0x856c4efb76c1d1ae02e20ceb03a2a6a08b0b8dc3
cvxCrvCrv - cvxCrv/Crv
0xd533a949740bb3306d119cc777fa900ba034cd52, 0x62b9c7356a2dc64a1969e19c23e4f579f9810aa7
ETHxwstETH - ETHx/wstETH
0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0, 0xa35b1b31ce002fbf2058d22f30f95d405200a15b
cvxFxsFxs - cvxFXS/FXS
0x3432b6a60d23ca0dfca7761b7ab56459d9c964d0, 0xfeef77d3f69374f66429c91d732a244f074bdf74
FRAXFPI - FRAX/FPI
0x853d955acef822db058eb8505911ed77f175b99e, 0x5ca135cb8527d76e932f34b5145575f9d8cbe08e
mim - MIM/DAI/USDC/USDT
0x99d8a9c45b2eca8864373a26d1459e3dff1e17f3, 0x6c3f90f043a72fa612cbac8115ee7e52bde6e490
crvUSDUSDC - USDC/crvUSD
0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48, 0xf939e0a03fb07f59a73314e73794be0e57ac1b4e
alETHfrxETH - alETH/frxETH
0x0100546f2cd4c9d97f798ffc9755e47865ff7ee6, 0x5e8422345238f34275888049021821e8e08caa1f
aave - DAI/USDC/USDT
0x028171bca77440897b824ca71d1c56cac55b68a3, 0xbcca60bb61934080951369a648fb03df4f96263c, 0x3ed3b47dd13ec9a98b44e6204a523e766b225811
crvUSDUSDT - USDT/crvUSD
0xdac17f958d2ee523a2206206994597c13d831ec7, 0xf939e0a03fb07f59a73314e73794be0e57ac1b4e
/getprice
Returns the swap quotation for the given token pairs.
GET
https://api.expand.network/dex/getprice
Query Parameters
Remote procedural call URL.
Refer to the DEX ID page for details.
Comma separated values of token addresses whose price is to be fetched.
https://api.expand.network/dex/getprice?dexId=1500&path=0x6b175474e89094c44da98b954eedeac495271d0f,0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48&amountIn=10000000000000000000
{
"status": 200,
"msg": "success",
"data": {
"amountIn": "10000000000000000000",
"path": [
"0x6b175474e89094c44da98b954eedeac495271d0f",
"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
],
"amountsOut": [
"10000000000000000000",
"9998342"
]
}
}
/getuserliquidity
Returns the balance of a particular token pair of an account.
GET
https://api.expand.network/dex/getuserliquidity
Query Parameters
Remote procedural call URL.
Public address of liquidity provider.
Refer to DEX ID page for details.
https://api.expand.network/dex/getuserliquidity?address=0x6fb447ae94f5180254d436a693907a1f57696900&dexId=1500&tokenA=0x6b175474e89094c44da98b954eedeac495271d0f&tokenB=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48&tokenC=0xdac17f958d2ee523a2206206994597c13d831ec7
{
"status": 200,
"msg": "success",
"data": {
"pairAddress": "0x6c3f90f043a72fa612cbac8115ee7e52bde6e490",
"tokenA": "0",
"tokenB": "0",
"tokenC": "0",
"liquidity": "0"
}
}
/getpoolliquidity
Returns the total liquidity for a specified pool.
GET
https://api.expand.network/dex/getpoolliquidity
Query Parameters
Remote procedural call URL.
Pool address whose liquidity is to be fetched.
Refer to DEX ID page for details.
https://api.expand.network/dex/getpoolliquidity?dexId=1500&poolAddress=0xc5424b857f758e906013f3555dad202e4bdb4567
{
"status": 200,
"msg": "success",
"data": {
"totalLiquidity": "6906912970691008135418"
}
}
/gettokenliquidity
Returns the individual token liquidity within the specified liquidity pool.
GET
https://api.expand.network/dex/gettokenliquidity
Query Parameters
Remote procedural call URL.
Refer to DEX ID page for details.
https://api.expand.network/dex/gettokenliquidity?dexId=1500&poolAddress=0xdebf20617708857ebe4f679508e7b7863a8a8eee
{
"status": 200,
"msg": "success",
"data": {
"aDAI": "4410821251140993186643520",
"aUSDC": "4427459634996",
"aUSDT": "12345097594917"
}
}
/getliquidityholders
Returns the total number of liquidity holders in the specified pool.
GET
https://api.expand.network/dex/getliquidityholders
Query Parameters
Remote procedural call URL.
Refer to DEX ID page for details.
https://api.expand.network/dex/getliquidityholders?dexId=1500&poolAddress=0xed279fdd11ca84beef15af5d39bb4d4bee23f0ca
{
"status": 200,
"msg": "success",
"data": {
"totalTokenHolders": 1467
}
}
/getindividualposition
Returns the liquidity position for a specified user address across all the pools for the DEX.
GET
https://api.expand.network/dex/getindividualposition
Query Parameters
Remote procedural call URL.
The public address of the liquidity holder.
Refer to DEX ID page for details.
The pool Addresses whose liquidity is to be fetched. (Comma-separated vaules)
https://api.expand.network/dex/getindividualposition?address=0x9bb98140F36553dB71fe4a570aC0b1401BC61B4F&dexId=1500
{
"status": 200,
"msg": "success",
"data": {
"aggregatedLiquidity": "1807177360143696334",
"poolAddresses": {
"DAIUSDCUSDT": {
"0xbebc44782c7db0a1a60cb6fe97d0b483032ff1c7": "1797671437464531430"
},
"ETHstETH": {
"0xdc24316b9ae028f1497c275eb9192a3ea0f67022": "9505922679164904"
}
}
}
}
/swap
Initiate a swap transaction on a specified DEX.
POST
https://api.expand.network/dex/swap
Request Body
Refer to the DEX ID page for details.
Comma-separated values of token addresses, inside an array, to swap.
Amount of token to be swapped.
Minimum amount accepted as a result of swap.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Percentage of total swap value.
By default, 1.
0 <= slippage value <= 10
{
"dexId": "1500",
"path": [ "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "0xae7ab96520de3a18e5e111b5eaab095312d7fe84" ],
"amountIn": "1000000000000000",
"amountOutMin": "10136848990976",
"gas": "800000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006"
}
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x828b154032950c8ff7cf8085d841723db2696056",
"value": "0",
"gas": "800000",
"data": "0x3df021240000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000000009382b488300"
}
}
With gasPriority:
{
"dexId": "1500",
"path": [ "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "0xae7ab96520de3a18e5e111b5eaab095312d7fe84" ],
"amountIn": "1000000000000",
"amountOutMin": "101368",
"gas": "800000",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900" ,
"gasPriority":"medium"
}
With gasPriority:
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0x828b154032950c8ff7cf8085d841723db2696056",
"value": "0",
"gas": "213623",
"data": "0x3df0212400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000e8d4a510000000000000000000000000000000000000000000000000000000000000018bf8"
}
}
With Slippage:
{
"dexId": "1500",
"amountIn": "1000000",
"amountOutMin": "949846",
"path": [
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
"0xdAC17F958D2ee523a2206206994597C13D831ec7"
],
"to": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
"deadline": "1711931771",
"from": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
"gas": "933376",
"gasPriority": "high",
"slippage": "4"
}
With Slippage:
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x22cf65ae3fa16d6379e72f4b4c2401c1b7c69731",
"to": "0xbebc44782c7db0a1a60cb6fe97d0b483032ff1c7",
"value": "0",
"gas": "933376",
"data": "0x3df021240000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000000000000ea554"
}
}
/addliquidity
Add liquidity to a specified pool in a specified DEX.
POST
https://api.expand.network/dex/addliquidity
Request Body
Refer to the DEX ID page for details.
Comma separated values of token addresses.
Amount of tokens to add liquidity.
Amount of tokens accepted as a result of the transaction.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Percentage of total value.
By default, 1.
0 <= slippage value <= 10
{
"dexId": "1500",
"path": [ "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "0xae7ab96520de3a18e5e111b5eaab095312d7fe84" ],
"amountIn": [ "100000000000000", "10000000000000" ],
"amountOut": "10136848990976",
"gas": "800000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006"
}
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x828b154032950c8ff7cf8085d841723db2696056",
"value": "0",
"gas": "800000",
"data": "0x0b4c7e4d00000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000009184e72a000000000000000000000000000000000000000000000000000000009382b488300"
}
}
With gasPriority:
{
"dexId": "1500",
"path": [
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"0xae7ab96520de3a18e5e111b5eaab095312d7fe84"
],
"amountIn": [
"100000000000000",
"10000000000000"
],
"amountOut": "10136848990976",
"gas": "800000",
"gasPriority": "high",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900"
}
With gasPriority:
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0x828b154032950c8ff7cf8085d841723db2696056",
"value": "0",
"gas": "362868",
"data": "0x0b4c7e4d00000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000009184e72a000000000000000000000000000000000000000000000000000000009382b488300"
}
}
With slippage:
{
"dexId": "1500",
"path": [ "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "0xae7ab96520de3a18e5e111b5eaab095312d7fe84" ],
"amountIn": [ "100000000000000", "10000000000000" ],
"amountOut": "10136848990976",
"gas": "800000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"slippage":"2.0001"
}
With slippage:
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x828b154032950c8ff7cf8085d841723db2696056",
"value": "0",
"gas": "800000",
"data": "0x0b4c7e4d00000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000009184e72a00000000000000000000000000000000000000000000000000000000908f69d0683"
}
}
/removeliquidity
Remove liquidity from a specified pool for a specified DEX.
POST
https://api.expand.network/dex/removeliquidity
Request Body
Refer to the DEX ID page for details.
Comma separated values of token addresses.
Amount of tokens to remove liquidity.
Amount of tokens accepted as a result of the transaction.
Address of the sender of the token.
Maximum gas limit provided by the sender, for the transaction.
Remote procedural call URL.
Percentage of total value. By default, 1. 0 <= slippage value <= 10
{
"dexId": "1500",
"path": [ "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "0xae7ab96520de3a18e5e111b5eaab095312d7fe84" ],
"amountIn": "1000000",
"amountOut": [ "100000000000000", "10000000000000" ],
"gas": "800000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006"
}
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x828b154032950c8ff7cf8085d841723db2696056",
"value": "0",
"gas": "800000",
"data": "0x5b36389c00000000000000000000000000000000000000000000000000000000000f424000000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000009184e72a000"
}
}
With gasPriority:
{
"dexId": "1500",
"path": [
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"0xae7ab96520de3a18e5e111b5eaab095312d7fe84"
],
"amountIn": "1000000",
"amountOut": [
"100000000000000",
"10000000000000"
],
"gas": "800000",
"gasPriority": "medium",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006"
}
With gasPriority:
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0x828b154032950c8ff7cf8085d841723db2696056",
"value": "0",
"gas": "362868",
"data": "0x0b4c7e4d00000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000000000000000000000000000000009184e72a000000000000000000000000000000000000000000000000000000009382b488300"
}
}
With Slippage:
{
"dexId": "1500",
"path": [
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"0xae7ab96520de3a18e5e111b5eaab095312d7fe84"
],
"amountIn": "1000000",
"amountOut": [
"100000000000000",
"10000000000000"
],
"gas": "800000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"slippage": "10"
}
With Slippage:
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x828b154032950c8ff7cf8085d841723db2696056",
"value": "0",
"gas": "800000",
"data": "0x5b36389c00000000000000000000000000000000000000000000000000000000000f4240000000000000000000000000000000000000000000000000000051dac207a0000000000000000000000000000000000000000000000000000000082f79cd9000"
}
}
Last updated