Kyberswap (Aggregator)
/getprice
Returns the best swap quotation for the given token pairs.
GET
https://api.expand.network/dex/getprice
Query Parameters
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. |
https://api.expand.network/dex/getprice?dexId=2200&path=0xdAC17F958D2ee523a2206206994597C13D831ec7%2C0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2&amountIn=100000000000
{
"status": 200,
"msg": "success",
"data": {
"amountIn": "100000000000",
"path": [
"0xdAC17F958D2ee523a2206206994597C13D831ec7",
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
],
"amountsOut": [
"100000000000",
"43382075587262580147"
]
}
}
/getliquiditysources
Get the liquidity sources for the specified dex aggregator(on the basis of chain), supported by expand.network.
GET
https://api.expand.network/dex/getliquiditysources
Query Parameters
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL. |
dexId* | String | Refer to the DEX ID page for details. |
https://api.expand.network/dex/getliquiditysources?dexId=2200
{
"status": 200,
"msg": "success",
"data": [
"KyberSwap Classic",
"KyberSwap Elastic",
"KyberSwap Limit Order",
"KyberSwap Limit Order V2",
"KyberSwap Professional Market Maker",
"Balancer Weighted",
"Balancer Composable",
"Curve (3pool, aave, saave, hbtc, ren, sbtc, eurs, link)",
"DefiSwap",
"DODO (v2)",
"Fraxswap",
"Lido stETH",
"Lido wstETH",
"Maker PSM",
"Maverick",
"PancakeSwap V2",
"PancakeSwap V3",
"POL",
"Saddle",
"ShibaSwap",
"SushiSwap",
"SushiSwap V3",
"Synapse",
"TraderJoe V21",
"Uniswap (v2)",
"Uniswap (v3)",
"Verse",
"Wombat"
]
}
/swap
Initiate a swap transaction on the DEX providing best swap quote.
POST
https://api.expand.network/dex/swap
Request Body
Name | Type | Description |
---|---|---|
dexId* | String | Refer to the DEX ID page for details. |
path* | Array | 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. |
gas* | String | Maximum gas limit provided by the sender, for the transaction. |
rpc | String | Remote procedural call URL. |
slippage | String | Percentage of total swap value. By default, 1. 0 <= slippage value <= 10 |
amountOutMin* | String | Minimum amount accepted as the result of swap. |
to* | String | Address of the recipient of the token. |
gasPriority | String | low, medium or high. |
{
"dexId": "2200",
"amountIn": "100000",
"amountOutMin": "0",
"path": [
"0xdAC17F958D2ee523a2206206994597C13D831ec7",
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
],
"to": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"gas": "400000",
"deadline": "1706168424"
}
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"to": "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5",
"value": "0",
"gas": "400000",
"data": "0x8af033fb000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd670000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000008e0000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b40200000000000000000000000000000000000000000000000000000000000186a00000000000000000000000000000000000000000000000000000398543e51ebb000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000065b77f2100000000000000000000000000000000000000000000000000000000000005e0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000027a0c7e1d6051c334d1e80ef6f521aa38eb0a448000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000046000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000405936119900000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000010000000000000000000000000027a0c7e1d6051c334d1e80ef6f521aa38eb0a448000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd670000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000004063407a490000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd670000000000000000000000007a9766c5fe7e90bad76e795f555bdd2078e88ace000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000f951e335afb289353dc249e82926178eac7ded7800000000000000000000000000000000000000000000000000000000000189e600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004027c0cd180000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000ce176e1b11a8f88a4ba2535de80e81f88592bad000000000000000000000000f951e335afb289353dc249e82926178eac7ded78000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd670000000000000000000000000000000000000000000000000000374e34aa81dd0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000003c521a9000000000000000000003986bce644fc00000000000000000000000000000000000000000000000000000000000001e67b22536f75726365223a22222c22416d6f756e74496e555344223a22302e31303031222c22416d6f756e744f7574555344223a22302e3134333535353530383637303938353032222c22526566657272616c223a22222c22466c616773223a312c22496e74656772697479496e666f223a7b224b65794944223a2231222c225369676e6174757265223a22487945466c424777734e482b385a766a5253682b575462424d4737667a4c36776b72717439484a6f4b4c6549686f43646f4c6b76784c5545412f5a6175546e4d6f346b6353684b6f4e6f43504d393250696f55547537625a417762526236423931504544626f35526d7253794e635732694e38744634545759496b73646378436f44536354654b5a4f337941613654302b476e72755a3749795450744c7136394458306f524d5a316254502b34356f70367676587a475370413444727153777043574d4b6d53774c6630684678714831526b485841732f58783337774e656563395062564f436e396a392b514e61694174505576356e646f446455614776637048656f737374655a745250726830337a34674654526a4e45626e7078494d77504763353962377049417a54584f6a5248444f657244526d464568586e35306d38526474617a635a35724d3333412b4b67584a67426b673d3d227d7d0000000000000000000000000000000000000000000000000000"
}
}
With gasPriority:
{
"dexId": "2200",
"amountIn": "100000",
"amountOutMin": "0",
"path": [
"0xdAC17F958D2ee523a2206206994597C13D831ec7",
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
],
"to": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"gas": "400000",
"deadline": "1706168424",
"gasPriority": "low"
}
With gasPriority:
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"to": "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5",
"value": "0",
"gas": "359432",
"data": "0x8af033fb000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd670000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000008e0000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b40200000000000000000000000000000000000000000000000000000000000186a00000000000000000000000000000000000000000000000000000398543e51ebb000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000065b780a500000000000000000000000000000000000000000000000000000000000005e0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000027a0c7e1d6051c334d1e80ef6f521aa38eb0a448000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000046000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000405936119900000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000010000000000000000000000000027a0c7e1d6051c334d1e80ef6f521aa38eb0a448000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd670000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000004063407a490000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd670000000000000000000000007a9766c5fe7e90bad76e795f555bdd2078e88ace000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000f951e335afb289353dc249e82926178eac7ded7800000000000000000000000000000000000000000000000000000000000189e600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004027c0cd180000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000ce176e1b11a8f88a4ba2535de80e81f88592bad000000000000000000000000f951e335afb289353dc249e82926178eac7ded78000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd670000000000000000000000000000000000000000000000000000374e34aa81dd0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000003c521a9000000000000000000003986bce644fc00000000000000000000000000000000000000000000000000000000000001e67b22536f75726365223a22222c22416d6f756e74496e555344223a22302e31303031222c22416d6f756e744f7574555344223a22302e3134333630323435323639373133333831222c22526566657272616c223a22222c22466c616773223a312c22496e74656772697479496e666f223a7b224b65794944223a2231222c225369676e6174757265223a2251735059527375464e554e4a594470725352327145692f636448656b62736847674a58332b647345644e74654278415a504877335846477672506f722f38784248586f5a7a46347256773538552b664c76562f484664594f485a5533474342424b324b524743504d4143764541384133666f4c38544b7249446e6d66646c5770436e77554d46504157424c3055314f6d6e653755327263713551374656614d30722b3664336a464a6852436d6f557a39744973686e636953526c366974454869715451707069354b7252676f436c543937417a42495447615549337a4d4d466e4d515267364e7878626c32706d76776e794551456d66455774754d6a757a636c4e564a646f6171556d426e3057374141777967756d73766a6b3743717a416e705479534b302b4350374848596e4d6459504f466e35366952456d714e617a3264346e336a7665634c5a4f3678656b6136765a673936673d3d227d7d0000000000000000000000000000000000000000000000000000"
}
}
With Slippage:
{
"dexId": "2200",
"amountIn": "100000",
"amountOutMin": "0",
"path": [
"0xdAC17F958D2ee523a2206206994597C13D831ec7",
"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
],
"to": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"gas": "400000",
"deadline": "1706168424",
"slippage": "10"
}
With Slippage:
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"to": "0x6131B5fae19EA4f9D964eAc0408E4408b66337b5",
"value": "0",
"gas": "400000",
"data": "0x8af033fb000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd670000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000008e0000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000dae2f6eddda6fb4fb60cc02633de27e2b431b40200000000000000000000000000000000000000000000000000000000000186a0000000000000000000000000000000000000000000000000000039786faa92fb000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000065b7842100000000000000000000000000000000000000000000000000000000000005e0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000027a0c7e1d6051c334d1e80ef6f521aa38eb0a448000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000046000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000405936119900000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000010000000000000000000000000027a0c7e1d6051c334d1e80ef6f521aa38eb0a448000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd670000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000004063407a490000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd670000000000000000000000007a9766c5fe7e90bad76e795f555bdd2078e88ace000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000f951e335afb289353dc249e82926178eac7ded7800000000000000000000000000000000000000000000000000000000000189e600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000004027c0cd180000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000ce176e1b11a8f88a4ba2535de80e81f88592bad000000000000000000000000f951e335afb289353dc249e82926178eac7ded78000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000f081470f5c6fbccf48cc4e5b82dd926409dcdd670000000000000000000000000000000000000000000000000000374e34aa81dd0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000003c528cc00000000000000000000398729d1f3bd00000000000000000000000000000000000000000000000000000000000001e57b22536f75726365223a22222c22416d6f756e74496e555344223a22302e31303031222c22416d6f756e744f7574555344223a22302e31343336333830363938383433353537222c22526566657272616c223a22222c22466c616773223a312c22496e74656772697479496e666f223a7b224b65794944223a2231222c225369676e6174757265223a22624c72766c49306f6337306b47374b684579424d78677a306562484b352b79503045654177426e646a52724959624e3634797551353872664f756a4d666f773854787471766755724b357759704456363466656e446a4f5536437a522f494976634a423866594a6b4a4a46585362787933686946446f59672b43674f51387859595a58713344547534736a3963576b4435457361326c3773306872376157754c64443848345a4f6b4c32442f4d733362716d6e346c442b526543616f7638726b3257554c4450457633394a365738645976685359354459413767366b79596b5376695061684456396a6831454257753861337861455357435449443659596474614678504735624555756a32704c77797a633061536171675478317144366150366b455133503548454d754246686e466a64616a78685a517a5446754b504a43613841386e706939554670773476454c2f56507a79513d3d227d7d000000000000000000000000000000000000000000000000000000"
}
}
Last updated