Swap route
Generate data for calling the swap router for exchange:
baseUrl/{chainId}/swap/calculateTrade
Parameters
Name | Description |
---|---|
fromTokenAddress * string(query) | 0x0000000000000000000000000000000000000000 |
toTokenAddress * string (query) | 0xdac17f958d2ee523a2206206994597c13d831ec7 |
amount * string (query) | 10000000000000000 |
fromAddress * string (query) | The address that calls the swap contract |
receiverAddress * string (query) | The address that receive the toToken |
feeType * string (query) | pay fees with: fromToken: 1 |
slippageTolerance * string (query) | slippageTolerance min: 0; max: 1; |
example:
{
"errno": 0,
"message": "success",
"data": {
"from": {
"blockchain": "ETH",
"address": "0x0000000000000000000000000000000000000000",
"name": "Ethereum",
"symbol": "ETH",
"decimals": 18,
"chainId": 1,
"_weiAmount": "1986000000000000000"
},
"to": {
"blockchain": "ETH",
"address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"name": "Tether USD",
"symbol": "USDT",
"decimals": 6,
"chainId": 1,
"_weiAmount": "3238591797"
},
"type": "CURVE",
"path": [
{
"blockchain": "ETH",
"address": "0x0000000000000000000000000000000000000000",
"name": "Ethereum",
"symbol": "ETH",
"decimals": 18,
"chainId": 1,
"_weiAmount": "1986000000000000000"
},
{
"blockchain": "ETH",
"address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"name": "Tether USD",
"symbol": "USDT",
"decimals": 6,
"chainId": 1,
}
],
"amountOut": "3238.591797",
"time": 3974,
"tx": {
"to": "0x47BE4C04c91d4897F8F27D32C7D79357B0939a91",
"data": "0xecc847d3396264393635363361333762306237626131336136353632376239336463636400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000099a58482bd75cbab83b27ec03ca68ff489b5788f00000000000000000000000099a58482bd75cbab83b27ec03ca68ff489b5788f000000000000000000000000644a66b76e740d98f0d23c3ae942163bb43078c1000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000c41a4c1ca3000000000000000000000000d51a44d3fae010294c616388b506acda1bfaae46000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000000000000000000000000000001b8fb07a4bed000000000000000000000000000000000000000000000000000000000000bf1ad1b7000000000000000000000000644a66b76e740d98f0d23c3ae942163bb43078c10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"value": "2000000000000000000",
"gasPrice": "11735626885",
"gas": "37800"
},
"toTokenAmount": "3238591797",
"slippageTolerance": 0.01,
"protocolFee": "14000000000000000",
"moreTrades": [
{
"from": {
"blockchain": "ETH",
"address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"name": "Ethereum",
"symbol": "ETH",
"decimals": 18,
"chainId": 1,
"_weiAmount": "1986000000000000000"
},
"to": {
"blockchain": "ETH",
"address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"name": "Tether USD",
"symbol": "USDT",
"decimals": 6,
"chainId": 1,
"_weiAmount": "3238202172"
},
"type": "ONE_INCH",
"path": [
{
"blockchain": "ETH",
"address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"name": "Ethereum",
"symbol": "ETH",
"decimals": 18,
"chainId": 1,
"_weiAmount": "1986000000000000000"
},
{
"blockchain": "ETH",
"address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"name": "Tether USD",
"symbol": "USDT",
"decimals": 6,
"chainId": 1,
}
],
"amountOut": "3238.202172",
"time": 3974,
"tx": {
"from": "0x644a66b76E740d98f0D23C3Ae942163Bb43078C1",
"to": "0x47BE4C04c91d4897F8F27D32C7D79357B0939a91",
"data": "0xecc847d3346333643866633165353762663135636532373635363666313262316466616300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000540000000000000000000000000000000000000000000000000000000000000056000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000047be4c04c91d4897f8f27d32c7d79357b0939a9100000000000000000000000047be4c04c91d4897f8f27d32c7d79357b0939a91000000000000000000000000644a66b76e740d98f0d23c3ae942163bb43078c1000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000030812aa3caf0000000000000000000000003208684f96458c540eb08f6f01b9e9afb2b7d4f0000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000003208684f96458c540eb08f6f01b9e9afb2b7d4f0000000000000000000000000644a66b76e740d98f0d23c3ae942163bb43078c10000000000000000000000000000000000000000000000001b8fb07a4bed000000000000000000000000000000000000000000000000000000000000bf14eef60000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016800000000000000000000000000000000000000000000000000014a00001a4041c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2d0e30db051204a585e0f7c18e2c414221d6402652d5e0990e5f8c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200a4a5dcbcdf000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000352b186090068eb35d532428676ce510e17ab5810000000000000000000000001111111254eeb25477b68fb85ed929f73a960582ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008b1ccac800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"value": "2000000000000000000",
"gas": "37800",
"gasPrice": "11735626885"
},
"toTokenAmount": "3238202172",
"slippageTolerance": 0.01,
"protocolFee": "14000000000000000"
},
{
"from": {
"blockchain": "ETH",
"address": "0x0000000000000000000000000000000000000000",
"name": "Ethereum",
"symbol": "ETH",
"decimals": 18,
"chainId": 1,
"_weiAmount": "1986000000000000000"
},
"to": {
"blockchain": "ETH",
"address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"name": "Tether USD",
"symbol": "USDT",
"decimals": 6,
"chainId": 1,
"_weiAmount": "3238105422"
},
"type": "UNI_SWAP_V3",
"path": [
{
"blockchain": "ETH",
"address": "0x0000000000000000000000000000000000000000",
"name": "Ethereum",
"symbol": "ETH",
"decimals": 18,
"chainId": 1,
"_weiAmount": "1986000000000000000"
},
{
"blockchain": "ETH",
"address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"name": "Tether USD",
"symbol": "USDT",
"decimals": 6,
"chainId": 1,
}
],
"amountOut": "3238.105422",
"time": 3974,
"tx": {
"to": "0x47BE4C04c91d4897F8F27D32C7D79357B0939a91",
"data": "0xecc847d3336139383863643362363364316266626335653235383533343739323039373000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000340000000000000000000000000000000000000000000000000000000000000036000000000000000000000000000000000000000000000000000000000000002400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000047be4c04c91d4897f8f27d32c7d79357b0939a9100000000000000000000000047be4c04c91d4897f8f27d32c7d79357b0939a91000000000000000000000000644a66b76e740d98f0d23c3ae942163bb43078c1000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000104414bf389000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000644a66b76e740d98f0d23c3ae942163bb43078c10000000000000000000000000000000000000000000000000000000064f84e5c0000000000000000000000000000000000000000000000001b8fb07a4bed000000000000000000000000000000000000000000000000000000000000bf1378d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"value": "2000000000000000000",
"gas": "37800",
"gasPrice": "11735626885"
},
"toTokenAmount": "3238105422",
"slippageTolerance": 0.01,
"protocolFee": "14000000000000000"
},
{
"from": {
"blockchain": "ETH",
"address": "0x0000000000000000000000000000000000000000",
"name": "Ethereum",
"symbol": "ETH",
"decimals": 18,
"chainId": 1,
"_weiAmount": "1986000000000000000"
},
"to": {
"blockchain": "ETH",
"address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"name": "Tether USD",
"symbol": "USDT",
"decimals": 6,
"chainId": 1,
"_weiAmount": "3238105422"
},
"type": "DODO",
"path": [
{
"blockchain": "ETH",
"address": "0x0000000000000000000000000000000000000000",
"name": "ETH",
"symbol": "ETH",
"decimals": 18,
"chainId": 1
},
{
"blockchain": "ETH",
"address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"name": "USDT",
"symbol": "USDT",
"decimals": 6,
"chainId": 1
}
],
"amountOut": "3238.105422",
"time": 3974,
"tx": {
"to": "0x47BE4C04c91d4897F8F27D32C7D79357B0939a91",
"data": "0xecc847d3333734656536333038636533356433643265313437363764353938376561636400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000008c000000000000000000000000000000000000000000000000000000000000008e000000000000000000000000000000000000000000000000000000000000007c00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000047be4c04c91d4897f8f27d32c7d79357b0939a9100000000000000000000000047be4c04c91d4897f8f27d32c7d79357b0939a91000000000000000000000000644a66b76e740d98f0d23c3ae942163bb43078c1000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000006844630a0d8cc6a0cb307c7c35b92fe323198778eb3ee00a525a13743e3471fedc976db8b1800000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000644a66b76e740d98f0d23c3ae942163bb43078c100000000000000000000000000000000000000000000000000000000bf1378d00000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000b6d617070726f746f636f6c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a307830303030303030303030303030303030303030303030303030303030303030303030303030303030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000050f9bde1c76bba997a5d6e7fefff695ec853619400000000000000000000000050f9bde1c76bba997a5d6e7fefff695ec85361940000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000000000000000000000000000001b8fb07a4bed000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000003c4301a3720000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000000000000000000000000000001b8fb07a4bed000000000000000000000000000000000000000000000000000000000000bf1378cf000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000003600000000000000000000000000000000000000000000000000000000064f857bd00000000000000000000000000000000000000000000000000000000000000010000000000000000000000009393a68e904b1f52a081cdfcf02ec56d842bf239000000000000000000000000000000000000000000000000000000000000000100000000000000000000000011b815efb8f581194ae79006d24e0d814b7697f600000000000000000000000000000000000000000000000000000000000000020000000000000000000000009393a68e904b1f52a081cdfcf02ec56d842bf23900000000000000000000000050f9bde1c76bba997a5d6e7fefff695ec85361940000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"value": "2000000000000000000",
"gas": "37800",
"gasPrice": "11735626885"
},
"toTokenAmount": "3238105422",
"slippageTolerance": 0.01,
"protocolFee": "14000000000000000"
},
{
"from": {
"blockchain": "ETH",
"address": "0x0000000000000000000000000000000000000000",
"name": "Ethereum",
"symbol": "ETH",
"decimals": 18,
"chainId": 1,
"_weiAmount": "1986000000000000000"
},
"to": {
"blockchain": "ETH",
"address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"name": "Tether USD",
"symbol": "USDT",
"decimals": 6,
"chainId": 1,
"_weiAmount": "3238105422"
},
"type": "OPEN_OCEAN",
"path": [
{
"blockchain": "ETH",
"address": "0x0000000000000000000000000000000000000000",
"name": "Ethereum",
"symbol": "ETH",
"decimals": 18,
"chainId": 1,
"_weiAmount": "1986000000000000000"
},
{
"blockchain": "ETH",
"address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"name": "Tether USD",
"symbol": "USDT",
"decimals": 6,
"chainId": 1,
"_weiAmount": "3238105422"
}
],
"amountOut": "3238.105422",
"time": 3974,
"tx": {
"to": "0x47BE4C04c91d4897F8F27D32C7D79357B0939a91",
"data": "0xecc847d3323061616565633662393537633631383566386134623738353734613963616200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000047be4c04c91d4897f8f27d32c7d79357b0939a9100000000000000000000000047be4c04c91d4897f8f27d32c7d79357b0939a91000000000000000000000000644a66b76e740d98f0d23c3ae942163bb43078c1000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000c4bc80f1a8000000000000000000000000644a66b76e740d98f0d23c3ae942163bb43078c10000000000000000000000000000000000000000000000001b8fb07a4bed000000000000000000000000000000000000000000000000000000000000bf1378d00000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000140006400000000000000000011b815efb8f581194ae79006d24e0d814b7697f60000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"value": "2000000000000000000",
"gas": "37800",
"gasPrice": "11735626885"
},
"toTokenAmount": "3238105422",
"slippageTolerance": 0.01,
"protocolFee": "14000000000000000"
},
{
"type": "BUTTER",
"from": {
"blackchain": "ETH",
"address": "0x0000000000000000000000000000000000000000",
"name": "ETH",
"symbol": "ETH",
"decimals": 18,
"_weiAmount": "1986000000000000000"
},
"to": {
"blackchain": "Tether USD",
"address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"name": "Tether USD",
"symbol": "USDT",
"decimals": 6,
"_weiAmount": "3238105422"
},
"toTokenAmount": "3238105422",
"timeEstimated": 0,
"tx": {
"to": "0x47BE4C04c91d4897F8F27D32C7D79357B0939a91",
"data": "0xecc847d3643733396232623136643335633738623939356366343830643935343130653400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000700000000000000000000000000000000000000000000000000000000000000072000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000047be4c04c91d4897f8f27d32c7d79357b0939a9100000000000000000000000047be4c04c91d4897f8f27d32c7d79357b0939a91000000000000000000000000644a66b76e740d98f0d23c3ae942163bb43078c1000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000004c4480a341100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001b8fb07a4bed000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000048000000000000000000000000000000000000000000000000000000000000004a000000000000000000000000000000000000000000000000000000000000003c00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035d0679243fd8addd4f34d14443981f74e826f1a00000000000000000000000035d0679243fd8addd4f34d14443981f74e826f1a00000000000000000000000047be4c04c91d4897f8f27d32c7d79357b0939a91000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000bf1378d000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000284efa0646500000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000644a66b76e740d98f0d23c3ae942163bb43078c100000000000000000000000000000000000000000000000000000000bf1378d000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000200000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc4500000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc450000000000000000000000000000000000000000000000001b8fb07a4bed000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000bf1378d00000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000002bc02aaa39b223fe8d0a0e5c4f27ead9083c756cc20001f4dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"value": "2000000000000000000",
"chainId": "1",
"gas": "37800",
"gasPrice": "11735626885"
},
"slippageTolerance": 0.01,
"protocolFee": "14000000000000000"
},
{
"from": {
"blockchain": "ETH",
"address": "0x0000000000000000000000000000000000000000",
"name": "Ethereum",
"symbol": "ETH",
"decimals": 18,
"chainId": 1,
"_weiAmount": "1986000000000000000"
},
"to": {
"blockchain": "ETH",
"address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"name": "Tether USD",
"symbol": "USDT",
"decimals": 6,
"chainId": 1,
"_weiAmount": "3231028527"
},
"type": "UNISWAP_V2",
"path": [
{
"blockchain": "ETH",
"address": "0x0000000000000000000000000000000000000000",
"name": "Ethereum",
"symbol": "ETH",
"decimals": 18,
"chainId": 1,
"_weiAmount": "1986000000000000000"
},
{
"blockchain": "ETH",
"address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"name": "Tether USD",
"symbol": "USDT",
"decimals": 6,
"chainId": 1,
}
],
"amountOut": "3231.028527",
"time": 3974,
"tx": {
"to": "0x47BE4C04c91d4897F8F27D32C7D79357B0939a91",
"data": "0xecc847d3653131653365343430356361386262343262353839383530666466313664333100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000034000000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000047be4c04c91d4897f8f27d32c7d79357b0939a9100000000000000000000000047be4c04c91d4897f8f27d32c7d79357b0939a91000000000000000000000000644a66b76e740d98f0d23c3ae942163bb43078c1000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000e47ff36ab500000000000000000000000000000000000000000000000000000000bea891220000000000000000000000000000000000000000000000000000000000000080000000000000000000000000644a66b76e740d98f0d23c3ae942163bb43078c10000000000000000000000000000000000000000000000000000000064f84e5c0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"value": "2000000000000000000",
"gas": "37800",
"gasPrice": "11735626885"
},
"toTokenAmount": "3231028527",
"slippageTolerance": 0.01,
"protocolFee": "14000000000000000"
}
]
}
}