0% found this document useful (0 votes)
49 views9 pages

Jsonformatter

Uploaded by

jinesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views9 pages

Jsonformatter

Uploaded by

jinesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 9

{

"data": {
"items": [
{
"id": "0xcd53e1245af10c11378e03735c022e7bc5f5490507eea5b203b358dab6cc5f7a",
"fromChainId": 100,
"fromAmountUSD": "10.00",
"fromAmount": "10000000",
"fromToken": {
"address": "0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83",
"chainId": 100,
"symbol": "USDC",
"decimals": 6,
"name": "USD Coin",
"coinKey": "USDC",
"logoURI":
"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/
assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",
"priceUSD": "1"
},
"fromAddress": "0xE05FB316eB8C4ba7288D43c1bd87BE8a8d16761C",
"toChainId": 137,
"toAmountUSD": "9.89",
"toAmount": "9888004",
"toAmountMin": "9838564",
"toToken": {
"address": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
"chainId": 137,
"symbol": "USDC.e",
"decimals": 6,
"name": "Bridged USD Coin",
"coinKey": "USDCe",
"logoURI":
"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/
assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",
"priceUSD": "1"
},
"toAddress": "0xC22cF2aA30A0181d6fE4B0B11aab238714Ba54f3",
"gasCostUSD": "0.02",
"containsSwitchChain": false,
"steps": [
{
"type": "lifi",
"id": "7fb5b43c-35d7-4979-a97f-d8cbad142ff6",
"tool": "amarok",
"toolDetails": {
"key": "amarok",
"name": "Connext",
"logoURI":
"https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/bridges/
connext.png"
},
"action": {
"fromToken": {
"address": "0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83",
"chainId": 100,
"symbol": "USDC",
"decimals": 6,
"name": "USD Coin",
"coinKey": "USDC",
"logoURI":
"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/
assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",
"priceUSD": "1"
},
"fromAmount": "10000000",
"toToken": {
"address": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
"chainId": 137,
"symbol": "USDC.e",
"decimals": 6,
"name": "Bridged USD Coin",
"coinKey": "USDCe",
"logoURI":
"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/
assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",
"priceUSD": "1"
},
"fromChainId": 100,
"toChainId": 137,
"slippage": 0.005,
"fromAddress": "0xE05FB316eB8C4ba7288D43c1bd87BE8a8d16761C",
"toAddress": "0xC22cF2aA30A0181d6fE4B0B11aab238714Ba54f3"
},
"estimate": {
"tool": "amarok",
"approvalAddress": "0x1231DEB6f5749EF6cE6943a275A1D3E7486F4EaE",
"toAmountMin": "9838564",
"toAmount": "9888004",
"fromAmount": "10000000",
"feeCosts": [
{
"name": "Router Fee",
"description": "Fee charged by routers for providing liquidity",
"token": {
"address": "0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1",
"chainId": 100,
"symbol": "WETH",
"decimals": 18,
"name": "Wrapped Ether",
"coinKey": "WETH",
"logoURI":
"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/
assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png",
"priceUSD": "3329.41"
},
"amount": "1502390415676",
"amountUSD": "0.01",
"percentage": "0.0005",
"included": true
},
{
"name": "Relayer Fee",
"description": "Fee charged by relayers for executing
transactions on destination chain",
"token": {
"address": "0x0000000000000000000000000000000000000000",
"chainId": 100,
"symbol": "xDAI",
"decimals": 18,
"name": "xDAI Native Token",
"coinKey": "DAI",
"logoURI":
"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/
assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png",
"priceUSD": "0.99985"
},
"amount": "166450505580445031",
"amountUSD": "0.17",
"percentage": "0.0169",
"included": false
}
],
"gasCosts": [
{
"type": "SEND",
"price": "17800000000",
"estimate": "934335",
"limit": "1277335",
"amount": "16631163000000000",
"amountUSD": "0.02",
"token": {
"address": "0x0000000000000000000000000000000000000000",
"chainId": 100,
"symbol": "xDAI",
"decimals": 18,
"name": "xDAI Native Token",
"coinKey": "DAI",
"logoURI":
"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/
assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png",
"priceUSD": "0.99985"
}
}
],
"executionDuration": 179.929,
"fromAmountUSD": "10.00",
"toAmountUSD": "9.89"
},
"includedSteps": [
{
"id": "05523585-6db9-41fb-abec-d44b7340a304",
"type": "swap",
"action": {
"fromChainId": 100,
"fromAmount": "10000000",
"fromToken": {
"address": "0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83",
"chainId": 100,
"symbol": "USDC",
"decimals": 6,
"name": "USD Coin",
"coinKey": "USDC",
"logoURI":
"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/
assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",
"priceUSD": "1"
},
"toChainId": 100,
"toToken": {
"address": "0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1",
"chainId": 100,
"symbol": "WETH",
"decimals": 18,
"name": "Wrapped Ether",
"coinKey": "WETH",
"logoURI":
"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/
assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png",
"priceUSD": "3329.41"
},
"slippage": 0.005,
"fromAddress": "0xE05FB316eB8C4ba7288D43c1bd87BE8a8d16761C"
},
"estimate": {
"tool": "1inch",
"fromAmount": "10000000",
"toAmount": "3013225440276508",
"toAmountMin": "2998159313075125",
"approvalAddress": "0x1111111254eeb25477b68fb85ed929f73a960582",
"executionDuration": 30,
"feeCosts": [],
"gasCosts": [
{
"type": "SEND",
"price": "17800000000",
"estimate": "594335",
"limit": "772636",
"amount": "10579163000000000",
"amountUSD": "0.01",
"token": {
"address": "0x0000000000000000000000000000000000000000",
"chainId": 100,
"symbol": "xDAI",
"decimals": 18,
"name": "xDAI Native Token",
"coinKey": "DAI",
"logoURI":
"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/
assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png",
"priceUSD": "0.99985"
}
}
]
},
"tool": "1inch",
"toolDetails": {
"key": "1inch",
"name": "1inch",
"logoURI":
"https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/
exchanges/oneinch.png"
}
},
{
"id": "14106ec0-7c2c-46f1-b8df-365aee209ac4",
"type": "cross",
"action": {
"fromChainId": 100,
"fromAmount": "3013225440276508",
"fromToken": {
"address": "0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1",
"chainId": 100,
"symbol": "WETH",
"decimals": 18,
"name": "Wrapped Ether",
"coinKey": "WETH",
"logoURI":
"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/
assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png",
"priceUSD": "3329.41"
},
"toChainId": 137,
"toToken": {
"address": "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619",
"chainId": 137,
"symbol": "WETH",
"decimals": 18,
"name": "Wrapped Ether",
"coinKey": "WETH",
"logoURI":
"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/
assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png",
"priceUSD": "3329.77"
},
"slippage": 0.005,
"fromAddress": "0xE05FB316eB8C4ba7288D43c1bd87BE8a8d16761C",
"destinationGasConsumption": "559458",
"destinationCallData":
"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000"
},
"estimate": {
"tool": "amarok",
"fromAmount": "3013225440276508",
"toAmount": "3002789975982580",
"toAmountMin": "2987776026102667",
"approvalAddress": "0x048a5ecc705c280b2248aeff88fd581abbeb8587",
"executionDuration": 119.929,
"feeCosts": [
{
"name": "Router Fee",
"description": "Fee charged by routers for providing
liquidity",
"token": {
"address": "0x6A023CCd1ff6F2045C3309768eAd9E68F978f6e1",
"chainId": 100,
"symbol": "WETH",
"decimals": 18,
"name": "Wrapped Ether",
"coinKey": "WETH",
"logoURI":
"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/
assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png",
"priceUSD": "3329.41"
},
"amount": "1502390415676",
"amountUSD": "0.01",
"percentage": "0.0005",
"included": true
},
{
"name": "Relayer Fee",
"description": "Fee charged by relayers for executing
transactions on destination chain",
"token": {
"address": "0x0000000000000000000000000000000000000000",
"chainId": 100,
"symbol": "xDAI",
"decimals": 18,
"name": "xDAI Native Token",
"coinKey": "DAI",
"logoURI":
"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/
assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png",
"priceUSD": "0.99985"
},
"amount": "166450505580445031",
"amountUSD": "0.17",
"percentage": "0.0169",
"included": false
}
],
"gasCosts": [
{
"type": "SEND",
"price": "17800000000",
"estimate": "340000",
"limit": "442000",
"amount": "6052000000000000",
"amountUSD": "0.01",
"token": {
"address": "0x0000000000000000000000000000000000000000",
"chainId": 100,
"symbol": "xDAI",
"decimals": 18,
"name": "xDAI Native Token",
"coinKey": "DAI",
"logoURI":
"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/
assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png",
"priceUSD": "0.99985"
}
}
]
},
"tool": "amarok",
"toolDetails": {
"key": "amarok",
"name": "Connext",
"logoURI":
"https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/bridges/
connext.png"
}
},
{
"id": "d3460e83-2cbc-43b8-97f4-e6dd8ee5a8cb",
"type": "swap",
"action": {
"fromChainId": 137,
"fromAmount": "2972837145972153",
"fromToken": {
"address": "0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619",
"chainId": 137,
"symbol": "WETH",
"decimals": 18,
"name": "Wrapped Ether",
"coinKey": "WETH",
"logoURI":
"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/
assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png",
"priceUSD": "3329.77"
},
"toChainId": 137,
"toToken": {
"address": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
"chainId": 137,
"symbol": "USDC.e",
"decimals": 6,
"name": "Bridged USD Coin",
"coinKey": "USDCe",
"logoURI":
"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/
assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",
"priceUSD": "1"
},
"slippage": 0.005,
"fromAddress": "0xE05FB316eB8C4ba7288D43c1bd87BE8a8d16761C"
},
"estimate": {
"tool": "odos",
"fromAmount": "2972837145972153",
"toAmount": "9888004",
"toAmountMin": "9838564",
"approvalAddress": "0x4e3288c9ca110bcc82bf38f09a7b425c095d92bf",
"executionDuration": 30,
"feeCosts": [],
"gasCosts": [
{
"type": "SEND",
"price": "109590190035",
"estimate": "172972",
"limit": "259458",
"amount": "18956034350734020",
"amountUSD": "0.02",
"token": {
"address": "0x0000000000000000000000000000000000000000",
"chainId": 137,
"symbol": "MATIC",
"decimals": 18,
"name": "MATIC",
"coinKey": "MATIC",
"logoURI":
"https://static.debank.com/image/matic_token/logo_url/matic/6f5a6b6f0732a7a235131bd
7804d357c.png",
"priceUSD": "0.8962"
}
}
]
},
"tool": "odos",
"toolDetails": {
"key": "odos",
"name": "Odos",
"logoURI": "https://www.odos.xyz/favicon.ico"
}
}
],
"integrator": "etherspot-lifi"
}
],
"insurance": {
"state": "NOT_INSURABLE",
"feeAmountUsd": "0"
},
"tags": [
"RECOMMENDED",
"CHEAPEST",
"FASTEST"
]
}
]
}
}

You might also like