WETH/DAI 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, 0x6B175474E89094C44Da98b954EedeAC495271d0F
wstETH/WETH 0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0, 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
BAL/WETH 0xba100000625a3754423978a60c9317c58a424e3D, 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
gOHM/DAI/WETH 0x0ab87046fBb341D058F17CBC4c1133F25a20a52f, 0x6B175474E89094C44Da98b954EedeAC495271d0F, 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
rETH/WETH 0xae78736Cd615f374D3085123A210448E74Fc6393, 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
wstETH/bb-a-USD 0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0, 0xA13a9247ea42D743238089903570127DdA72fE44
STG/bb-a-USD 0xAf5191B0De278C7286d6C7CC6ab6BB8A73bA2Cd6, 0xA13a9247ea42D743238089903570127DdA72fE44
auraBAL/B-80BAL-20WETH 0x616e8BfA43F920657B3497DBf40D6b1A02D4608d, 0x5c6Ee304399DBdB9C8Ef030aB642B10820DB8F56
GNO/WETH 0x6810e776880c02933d47db1b9fc05908e5386b96, 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
TEMPLE/DAI 0x470EBf5f030Ed85Fc1ed4C2d36B9DD02e77CF1b7, 0x6B175474E89094C44Da98b954EedeAC495271d0F
RPL/rETH 0xd33526068d116ce69f19a9ee46f0bd304f21a51f, 0xae78736cd615f374d3085123a210448e74fc6393
BADGER/WBTC 0x3472a5a71965499acd81997a54bba8d852c6e53d, 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599
WETH/AKITA 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, 0x3301Ee63Fb29F863f2333Bd4466acb46CD8323E6
AURA/WETH 0xc0c293ce456ff0ed870add98a0828dd4d2903dbf, 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
rETH/bb-a-USD 0xae78736Cd615f374D3085123A210448E74Fc6393, 0xa13a9247ea42d743238089903570127dda72fe44
NOTE/WETH 0xcfeaead4947f0705a14ec42ac3d44129e1ef3ed5, 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
DIGG/WBTC/graviAURA 0x798D1bE841a82a273720CE31c822C61a67a601C3, 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599, 0xba485b556399123261a5f9c95d413b4f93107407
rETH/BADGER 0xae78736Cd615f374D3085123A210448E74Fc6393, 0x3472A5A71965499acd81997a54BBA8D852C6E53d
COMP/wstETH 0xc00e94cb662c3520282e6f5717214004a7f26888, 0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0
COW/GNO 0xDEf1CA1fb7FBcDC777520aa7f396b4E015F497aB, 0x6810e776880C02933D47DB1b9fc05908e5386b96
WETH/LINK 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2, 0x514910771AF9Ca656af840dff83E8264EcF986CA
USDC/WETH 0xe0C9275E44Ea80eF17579d33c55136b7DA269aEb, 0xdFCeA9088c8A88A76FF74892C1457C17dfeef9C1
wstETH/WETH 0x6320cD32aA674d2898A68ec82e869385Fc5f7E2f, 0xdFCeA9088c8A88A76FF74892C1457C17dfeef9C1
GET
https://api.expand.network/dex/getprice
Name | Type | Description |
---|---|---|
https://api.expand.network/dex/getprice?dexId=1400&path=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2,0x6B175474E89094C44Da98b954EedeAC495271d0F&amountIn=10000000000000000000
{
"status": 200,
"msg": "success",
"data": {
"amountIn": "10000000000000000000",
"path": [
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"0x6B175474E89094C44Da98b954EedeAC495271d0F"
],
"amountsOut": [
"10000000000000000000",
"15680384060944301565791"
]
}
}
GET
https://api.expand.network/dex/getuserliquidity
https://api.expand.network/dex/getuserliquidity?tokenA=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2&tokenB=0x6b175474e89094c44da98b954eedeac495271d0f&address=0x6fb447ae94f5180254d436a693907a1f57696900&dexId=1400
{
"status": 200,
"msg": "success",
"data": {
"pairAddress": "0x0b09deA16768f0799065C475bE02919503cB2a35",
"liquidity": "29039335004710280",
"tokenA": "929003303177645.5",
"tokenB": "1036081671349582300"
}
}
GET
https://api.expand.network/dex/getpoolliquidity
https://api.expand.network/dex/getpoolliquidity?dexId=1400&poolAddress=0x25Accb7943Fd73Dda5E23bA6329085a3C24bfb6a
{
"status": 200,
"msg": "success",
"data": {
"totalLiquidity": "21939886662955269687535"
}
}
GET
https://api.expand.network/dex/gettokenliquidity
https://api.expand.network/dex/gettokenliquidity?dexId=1400&poolAddress=0x25Accb7943Fd73Dda5E23bA6329085a3C24bfb6a
{
"status": 200,
"msg": "success",
"data": {
"wstETH": "241859600516947967997",
"bb-a-USD": "503400928836915874116420"
}
}
GET
https://api.expand.network/dex/getliquidityholders
https://api.expand.network/dex/getliquidityholders?dexId=1400&poolAddress=0x1b65fe4881800B91d4277ba738b567CbB200A60d
{
"status": 200,
"msg": "success",
"data": {
"totalTokenHolders": 44
}
}
GET
https://api.expand.network/dex/getindividualposition
https://api.expand.network/dex/getindividualposition?address=0xc29562b045D80fD77c69Bec09541F5c16fe20d9d&dexId=1400&poolAddresses=0xc29562b045D80fD77c69Bec09541F5c16fe20d9d
{
"status": 200,
"msg": "success",
"data": {
"aggregatedLiquidity": "0",
"poolAddresses": {
"WETHAURA": {
"0xc29562b045D80fD77c69Bec09541F5c16fe20d9d": "0"
}
}
}
}
POST
https://api.expand.network/dex/swap
{
"dexId": "1400",
"swapKind": "0",
"path": [
"0xae78736Cd615f374D3085123A210448E74Fc6393",
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
],
"amountIn": "100000",
"gas": "800000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"deadline": "1668973383"
}
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"value": "0",
"gas": "800000",
"data": "0x945bcec90000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000004c000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000058000000000000000000000000000000000000000000000000000000000637a8347000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002c0334c96d792e4b26b841d28f53235281cec1be1f200020000000000000000038a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000b9bd68a77ccf8314c0dfe51bc291c77590c4e9e600020000000000000000038500000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000e0fcbf4d98f0ad982db260f86cf28b49845403c500000000000000000000050400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000060d604890feaa0b5460b28a424407c24fe89374a0000000000000000000004fc00000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005000000000000000000000000ae78736cd615f374d3085123a210448e74fc6393000000000000000000000000a13a9247ea42d743238089903570127dda72fe440000000000000000000000007f39c581f595b53c5cb19bd0b3f8da6c935e2ca000000000000000000000000060d604890feaa0b5460b28a424407c24fe89374a000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000186a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff29a1"
}
}
With gasPriority:
{
"dexId": "1400",
"swapKind": "0",
"path": [
"0xae78736Cd615f374D3085123A210448E74Fc6393",
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
],
"amountIn": "100000",
"gas": "800000",
"gasPriority": "medium",
"from": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
"deadline": "1668973383"
}
With gasPriority:
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
"to": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"value": "0",
"gas": "213628",
"data": "0x945bcec90000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000007600000000000000000000000004c99d660a51d41be5d47d66a3d89d5b83d92f27e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000004c99d660a51d41be5d47d66a3d89d5b83d92f27e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000088000000000000000000000000000000000000000000000000000000000637a8347000000000000000000000000000000000000000000000000000000000000000700000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000260000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000003e000000000000000000000000000000000000000000000000000000000000004a0000000000000000000000000000000000000000000000000000000000000056042ed016f826165c2e5976fe5bc3df540c5ad0af700000000000000000000058b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000025accb7943fd73dda5e23ba6329085a3c24bfb6a00020000000000000000038700000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000a13a9247ea42d743238089903570127dda72fe4400000000000000000000035d00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000ae37d54ae477268b9997d4161b96b8200755935c00000000000000000000033700000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000804cdb9116a10bb78768d3252355a1b18067bf8f0000000000000000000000fb00000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000007b50775383d3d6f0215a8f290f2c9e2eebbeceb20000000000000000000000fe00000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000070b7d3b3209a59fb0400e17f67f3ee8c37363f4900020000000000000000018f00000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000ae78736cd615f374d3085123a210448e74fc63930000000000000000000000007f39c581f595b53c5cb19bd0b3f8da6c935e2ca0000000000000000000000000a13a9247ea42d743238089903570127dda72fe44000000000000000000000000ae37d54ae477268b9997d4161b96b8200755935c00000000000000000000000002d60b84491589974263d922d9cc7a3152618ef6000000000000000000000000804cdb9116a10bb78768d3252355a1b18067bf8f0000000000000000000000007b50775383d3d6f0215a8f290f2c9e2eebbeceb2000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000201000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe7960"
}
}
With slippage:
{
"dexId": "1400",
"swapKind": "0",
"path": [
"0xae78736Cd615f374D3085123A210448E74Fc6393",
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
],
"amountIn": "100000",
"gas": "800000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"deadline": "1668973383",
"slippage": "5"
}
With slippage:
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"value": "0",
"gas": "800000",
"data": "0x945bcec900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000076000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000088000000000000000000000000000000000000000000000000000000000637a8347000000000000000000000000000000000000000000000000000000000000000700000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000260000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000003e000000000000000000000000000000000000000000000000000000000000004a0000000000000000000000000000000000000000000000000000000000000056042ed016f826165c2e5976fe5bc3df540c5ad0af700000000000000000000058b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000025accb7943fd73dda5e23ba6329085a3c24bfb6a00020000000000000000038700000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000a13a9247ea42d743238089903570127dda72fe4400000000000000000000035d00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000ae37d54ae477268b9997d4161b96b8200755935c00000000000000000000033700000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000804cdb9116a10bb78768d3252355a1b18067bf8f0000000000000000000000fb00000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000007b50775383d3d6f0215a8f290f2c9e2eebbeceb20000000000000000000000fe00000000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000070b7d3b3209a59fb0400e17f67f3ee8c37363f4900020000000000000000018f00000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000ae78736cd615f374d3085123a210448e74fc63930000000000000000000000007f39c581f595b53c5cb19bd0b3f8da6c935e2ca0000000000000000000000000a13a9247ea42d743238089903570127dda72fe44000000000000000000000000ae37d54ae477268b9997d4161b96b8200755935c00000000000000000000000002d60b84491589974263d922d9cc7a3152618ef6000000000000000000000000804cdb9116a10bb78768d3252355a1b18067bf8f0000000000000000000000007b50775383d3d6f0215a8f290f2c9e2eebbeceb2000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000001fd000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe7960"
}
}
POST
https://api.expand.network/dex/addliquidity
{
"dexId": "1400",
"path": ["0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "0x6B175474E89094C44Da98b954EedeAC495271d0F"],
"amountIn": ["0","100000000"],
"amountOut": "2331262690208301876",
"fromInternalBalance": false,
"gas": "2307200",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006"
}
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"value": "0",
"gas": "2307200",
"data": "0xb95cac289f1f16b025f703ee985b58ced48daf93dad2f7ef00020000000000000000006300000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000dfcea9088c8a88a76ff74892c1457c17dfeef9c1000000000000000000000000e0c9275e44ea80ef17579d33c55136b7da269aeb000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005f5e10000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000205a4f10affcc334000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005f5e100"
}
}
With gasPriority:
{
"dexId": "1400",
"amountIn": [
"1000000000000000000",
"1000000000000000000"
],
"amountOut": "0",
"path": [
"0x6B175474E89094C44Da98b954EedeAC495271d0F",
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
],
"to": "0xDeBB1a42a27051FD18d6d6C2055A44d330A4D80a",
"deadline": "1710209834351",
"from": "0xDeBB1a42a27051FD18d6d6C2055A44d330A4D80a",
"gas": "273376",
"fromInternalBalance": false,
"gasPriority": "low"
}
With gasPriority:
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xDeBB1a42a27051FD18d6d6C2055A44d330A4D80a",
"to": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"value": "0",
"gas": "223199",
"data": "0xb95cac280b09dea16768f0799065c475be02919503cb2a3500020000000000000000001a000000000000000000000000debb1a42a27051fd18d6d6c2055a44d330a4d80a000000000000000000000000debb1a42a27051fd18d6d6c2055a44d330a4d80a0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000de0b6b3a7640000"
}
}
With slippage:
{
"dexId": "1400",
"path": [
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"0x6B175474E89094C44Da98b954EedeAC495271d0F"
],
"amountIn": [
"0",
"100000000"
],
"amountOut": "2331262690208301876",
"fromInternalBalance": false,
"gas": "2307200",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"slippage": "7.02"
}
With slippage:
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"value": "0",
"gas": "2307200",
"data": "0xb95cac280b09dea16768f0799065c475be02919503cb2a3500020000000000000000001a00000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005f5e10000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000001e14e409521f6600000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005f5e100"
}
}
POST
https://api.expand.network/dex/removeliquidity
{
"dexId": "1400",
"path": ["0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "0x6B175474E89094C44Da98b954EedeAC495271d0F"],
"amountOut": ["0","100000000"],
"amountIn": "2427326557218525461",
"toInternalBalance": false,
"gas": "2307200",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006"
}
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"value": "0",
"gas": "2307200",
"data": "0x8bdb39139f1f16b025f703ee985b58ced48daf93dad2f7ef00020000000000000000006300000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000dfcea9088c8a88a76ff74892c1457c17dfeef9c1000000000000000000000000e0c9275e44ea80ef17579d33c55136b7da269aeb000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005f5e10000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000021af98a4ace1d115000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005f5e100"
}
}
With gasPriority (medium):
{
"dexId": "1400",
"path": [
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"0x6B175474E89094C44Da98b954EedeAC495271d0F"
],
"amountOut": [
"100",
"100000000"
],
"amountIn": "2427326557218525461",
"toInternalBalance": false,
"gas": "2307200",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gasPriority": "medium"
}
With gasPriority:
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x4C99D660A51D41bE5D47D66a3d89d5B83D92f27E",
"to": "0xc36442b4a4522e871399cd717abdd847ab11fe88",
"value": "0",
"gas": "362868",
"data": "0xac9650d80000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000000a40c49ccbe0000000000000000000000000000000000000000000000000000000000094bbe00000000000000000000000000000000000000000000000002d01daa7e99eb02000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018bf6344a84000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084fc6f78650000000000000000000000000000000000000000000000000000000000094bbe000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffff00000000000000000000000000000000ffffffffffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004449404b7c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000004c99d660a51d41be5d47d66a3d89d5b83d92f27e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064df2ab5bb0000000000000000000000009813037ee2218799597d83d4a5b6f3b6778218d900000000000000000000000000000000000000000000000000000000000000000000000000000000000000004c99d660a51d41be5d47d66a3d89d5b83d92f27e00000000000000000000000000000000000000000000000000000000"
}
}
With Slippage:
{
"dexId": "1400",
"path": [
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"0x6B175474E89094C44Da98b954EedeAC495271d0F"
],
"amountOut": [
"100",
"100000000"
],
"amountIn": "2427326557218525461",
"toInternalBalance": false,
"gas": "2307200",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"slippage": "6.01"
}
With Slippage:
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xBA12222222228d8Ba445958a75a0704d566BF2C8",
"value": "0",
"gas": "2307200",
"data": "0x8bdb39130b09dea16768f0799065c475be02919503cb2a3500020000000000000000001a00000000000000000000000063056e00436da25bcf48a40dfbbdcc708935100600000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000005e00000000000000000000000000000000000000000000000000000000059a2c700000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000021af98a4ace1d115"
}
}
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
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 whose price is to be fetched.
amountIn*
String
Amount of token.
rpc
String
Remote procedural call URL.
tokenA*
String
Address of token.
address*
String
Public address of liquidity provider.
dexId*
String
Refer to DEX ID page for details.
tokenB*
String
Address of token.
tokenC
String
Address of token.
rpc
String
Remote procedural call URL.
poolAddress*
String
Pool address whose liquidity is to be fetched.
dexId*
String
Refer to DEX ID page for details.
rpc
String
Remote procedural call URL.
poolAddress*
String
The pool address.
dexId*
String
Refer to DEX ID page for details.
rpc
String
Remote procedural call URL.
poolAddress*
String
The pool address.
dexId*
String
Refer to DEX ID page for details.
rpc
String
Remote procedural call URL.
address*
String
The public address of the liquidity holder.
dexId*
String
Refer to DEX ID page for details.
poolAddresses
String
The pool Addresses whose liquidity is to be fetched. (Comma-separated vaules)
dexId*
String
Refer to the DEX ID page for details.
path*
Array
Comma-separated values of token addresses, inside an array, to swap.
amountIn*
String
Amount of token to be swapped.
from*
String
Address of the sender of the token.
gas*
String
Maximum gas limit provided by the sender, for the transaction.
rpc
String
Remote procedural call URL.
swapKind*
String
The type of batch swap we want to perform.
deadline*
String
Deadline for the transaction to be executed (UNIX Timestamp).
gasPriority
String
low, medium, or high.
slippage
String
Percentage of total swap value. By default, 1.
0 <= slippage value <= 10
dexId*
String
Refer to the DEX ID page for details.
path*
Array
Comma separated values of token addresses.
amountIn*
Array
Amount of tokens to add liquidity.
amountOut*
String
Amount of tokens accepted as a result of the transaction.
from*
String
Address of the sender of the token.
gas*
String
Maximum gas limit provided by the sender, for the transaction.
rpc
String
Remote procedural call URL.
fromInternalBalance*
Boolean
True
if sending from internal token balances. False
if sending ERC20.
to*
String
Address of the recipient of the token.
gasPriority
String
low, medium, or high.
slippage
String
Percentage of total swap value. By default, 1.
0 <= slippage value <= 10
dexId*
String
Refer to the DEX ID page for details.
path*
Array
Comma separated values of token addresses.
amountIn*
String
Amount of tokens to add liquidity.
amountOut*
Array
Amount of tokens accepted as a result of the transaction.
from*
String
Address of the sender of the token.
gas*
String
Maximum gas limit provided by the sender, for the transaction.
rpc
String
Remote procedural call URL.
toInternalBalance*
Boolean
True
if you receiving tokens as internal token balances. False
if receiving as ERC20.
to*
String
Address of the recipient of the token.
gasPriority
String
low, medium, or high.
slippage
String
Percentage of total swap value. By default, 1.
0 <= slippage value <= 10