Kim API Reference

Get Quote

POST /protocol/get-protocol-quotes

Fetch the quote for adding liquidity into Kim from any chain using any token.

Base URL

https://api.routerintents.com

Body

{
    "ReceiverAddress": "0xcdACa3635f4B1C969af7C53988D4c8576698ba7C",
    "SourceTokens": [
        {
            "chainId": "43114",
            "address": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",
            "name": "USDT",
            "symbol": "USDT",
            "decimals": 6
        }
    ],
    "DestinationTokens": [
        {
            "chainId": "34443",
            "address": "0x4200000000000000000000000000000000000006",
            "name": "WETH",
            "symbol": "WETH",
            "decimals": 18
        },
        {
            "chainId": "34443",
            "address": "0xd988097fb8612cc24eeC14542bC03424c656005f",
            "name": "USDC",
            "symbol": "USDC",
            "decimals": 6
        }
    ],
    "Amount": [
        "15000000"
    ],
    "SourceChainId": 43114,
    "Protocol": [
        {
            "protocolId": "kim",
            "chainId": "34443",
            "action": "deposit_v4", // for Kim V2 --> send "deposit_v2"
            "poolId": "",
            "data":{
                "lowerTick":"-196500",
                "upperTick":"-195000"
            }
        }
    ]
}

For ETH liquidity pools (for eg: ETH/USDC, ETH/MODE) pass WETH token address in the DestinationTokens array.

Kim V4 Protocol Data

// For protocol, pass the following:
{
    "protocolId": "kim",
    "chainId": "34443", // Mode
    "action": "deposit_v4", // to add liquidity to Kim V4
    "poolId": "",
    "data": {
        "lowerTick": "-540", // based on the range selected by the user for adding liquidity
        "upperTick": "960" 
        }
}

Kim V2 Protocol Data

// For protocol, pass the following:
{
    "protocolId": "kim",
    "chainId": 34443, // Mode
    "action": "deposit_v2", // to add liquidity to Kim V2
    "poolId": ""
}

Response

{
    "Code": 0,
    "Errors": [],
    "PayLoad": {
        "appId": "0",
        "quotationType": "BatchTransaction",
        "slippageTolerance": 2,
        "sourceTokens": [
            {
                "chainId": "43114",
                "address": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",
                "name": "USDT",
                "symbol": "USDT",
                "decimals": 6
            }
        ],
        "amount": [
            "15000000"
        ],
        "sourceChainId": 43114,
        "destinationChainId": 34443,
        "adapters": [
            {
                "adapterId": "nitro_bridge",
                "adapterType": "bridge",
                "sourceChainId": 43114,
                "destChainId": "34443",
                "adapterOptions": {
                    "srcToken": {
                        "chainId": "43114",
                        "address": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",
                        "name": "USDT",
                        "symbol": "USDT",
                        "decimals": 6
                    },
                    "amountIn": "15000000",
                    "amountOut": "14688209",
                    "destToken": {
                        "chainId": "34443",
                        "address": "0xd988097fb8612cc24eeC14542bC03424c656005f",
                        "name": "USDC",
                        "symbol": "USDC",
                        "decimals": 6
                    },
                    "receiverAddress": "0x4D9733ca83610E1343Ed2581d1779f294638BB33",
                    "data": {
                        "actionType": 1,
                        "refundAddress": "0xcdACa3635f4B1C969af7C53988D4c8576698ba7C",
                        "partnerId": 102,
                        "tokens": [
                            "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",
                            "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"
                        ],
                        "bridgeFee": {
                            "amount": "7209",
                            "decimals": 6,
                            "symbol": "USDC"
                        },
                        "isMainnet": true,
                        "quotationParams": {
                            "fromTokenAddress": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",
                            "toTokenAddress": "0xd988097fb8612cc24eeC14542bC03424c656005f",
                            "amount": "15000000",
                            "fromTokenChainId": 43114,
                            "toTokenChainId": "34443",
                            "partnerId": 102,
                            "additionalGasLimit": 160000,
                            "slippageTolerance": 2
                        },
                        "forwarderQuotation": {
                            "flowType": "trustless",
                            "isTransfer": "false",
                            "isWrappedToken": false,
                            "allowanceTo": "0x4406ebEb7028fc0fc06bB7706A736AC6ada8D2bF",
                            "bridgeFee": {
                                "amount": "7209",
                                "decimals": 6,
                                "symbol": "USDC"
                            },
                            "fuelTransfer": null,
                            "fromTokenAddress": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",
                            "toTokenAddress": "0xd988097fb8612cc24eeC14542bC03424c656005f",
                            "source": {
                                "chainId": "43114",
                                "chainType": "evm",
                                "asset": {
                                    "decimals": 6,
                                    "symbol": "USDT",
                                    "name": "USDT",
                                    "chainId": "43114",
                                    "address": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",
                                    "resourceID": "usdt",
                                    "isMintable": false,
                                    "isWrappedAsset": false,
                                    "isReserveAsset": false,
                                    "tokenInstance": {
                                        "decimals": 6,
                                        "symbol": "USDT",
                                        "name": "USDT",
                                        "chainId": 43114,
                                        "address": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7"
                                    }
                                },
                                "stableReserveAsset": {
                                    "decimals": 6,
                                    "symbol": "USDC",
                                    "name": "USDC",
                                    "chainId": "43114",
                                    "address": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
                                    "resourceID": "usdc-circle",
                                    "isMintable": false,
                                    "isWrappedAsset": false,
                                    "isReserveAsset": false
                                },
                                "tokenAmount": "15000000",
                                "stableReserveAmount": "14843784",
                                "path": [
                                    "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",
                                    "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"
                                ],
                                "flags": [
                                    "4002"
                                ],
                                "priceImpact": "0.00",
                                "tokenPath": "USDT->USDC",
                                "dataTx": [
                                    "0x90411a3200000000000000000000000074d307abb01372e47bd7be90a5f991331e05cccf000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000009702230a8ea53601f5cd2dc00fdbc13d4df4a8c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e00000000000000000000000074d307abb01372e47bd7be90a5f991331e05cccf0000000000000000000000004406ebeb7028fc0fc06bb7706a736ac6ada8d2bf0000000000000000000000000000000000000000000000000000000000e4e1c00000000000000000000000000000000000000000000000000000000000e27f890000000000000000000000000000000000000000000000000000000000e4c93a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d2137a6d0ef438a7c2bb38eeef364500271658be000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000044000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064eb5625d90000000000000000000000009702230a8ea53601f5cd2dc00fdbc13d4df4a8c7000000000000000000000000c9bfc3efefe4cf96877009f75a61f5c1937e5d1a0000000000000000000000000000000000000000000000000000000000e4e1c000000000000000000000000000000000000000000000000000000000000000000000000000000000c9bfc3efefe4cf96877009f75a61f5c1937e5d1a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c49908fc8b0000000000000000000000009702230a8ea53601f5cd2dc00fdbc13d4df4a8c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e0000000000000000000000000000000000000000000000000000000000e4e1c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000074d307abb01372e47bd7be90a5f991331e05cccfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000648a6a1e85000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e000000000000000000000000353c1f0bc78fbbc245b3c93ef77b1dcc5b77d2a00000000000000000000000000000000000000000000000000000000000e4c93a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f865422000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e00000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f99000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e0000000000000000000000004406ebeb7028fc0fc06bb7706a736ac6ada8d2bf00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
                                ]
                            },
                            "destination": {
                                "chainId": "34443",
                                "chainType": "evm",
                                "asset": {
                                    "decimals": 6,
                                    "symbol": "USDC",
                                    "name": "USDC",
                                    "chainId": "34443",
                                    "address": "0xd988097fb8612cc24eeC14542bC03424c656005f",
                                    "resourceID": "usdc-circle",
                                    "isMintable": false,
                                    "isWrappedAsset": false,
                                    "isReserveAsset": false,
                                    "tokenInstance": {
                                        "decimals": 6,
                                        "symbol": "USDC",
                                        "name": "USDC",
                                        "chainId": 34443,
                                        "address": "0xd988097fb8612cc24eeC14542bC03424c656005f"
                                    }
                                },
                                "stableReserveAsset": {
                                    "decimals": 6,
                                    "symbol": "USDC",
                                    "name": "USDC",
                                    "chainId": "34443",
                                    "address": "0xd988097fb8612cc24eeC14542bC03424c656005f",
                                    "resourceID": "usdc-circle",
                                    "isMintable": false,
                                    "isWrappedAsset": false,
                                    "isReserveAsset": false
                                },
                                "tokenAmount": "14836575",
                                "stableReserveAmount": "14836575",
                                "priceImpact": "0.00",
                                "tokenPath": "USDC",
                                "dataTx": [
                                    "0x00"
                                ],
                                "path": [
                                    "0xd988097fb8612cc24eeC14542bC03424c656005f"
                                ],
                                "flags": [
                                    "4002"
                                ]
                            },
                            "partnerId": "102",
                            "slippageTolerance": "2",
                            "estimatedTime": 40
                        },
                        "destinationAmount": "14836575",
                        "destinationAmountPromised": "14688209"
                    }
                },
                "adapters": [
                    {
                        "adapterId": "dex_swap",
                        "adapterType": "swap",
                        "sourceChainId": "34443",
                        "destChainId": "34443",
                        "adapterOptions": {
                            "srcToken": {
                                "chainId": "34443",
                                "address": "0xd988097fb8612cc24eeC14542bC03424c656005f",
                                "name": "USDC",
                                "symbol": "USDC",
                                "decimals": 6
                            },
                            "amountIn": "7307384",
                            "amountOut": "2402248392764151",
                            "destToken": {
                                "chainId": "34443",
                                "address": "0x4200000000000000000000000000000000000006",
                                "name": "WETH",
                                "symbol": "WETH",
                                "decimals": 18
                            },
                            "receiverAddress": "0x4D9733ca83610E1343Ed2581d1779f294638BB33",
                            "data": {
                                "tokens": [
                                    "0xd988097fb8612cc24eeC14542bC03424c656005f",
                                    "0x4200000000000000000000000000000000000006"
                                ],
                                "flags": [
                                    "4002"
                                ],
                                "dataTx": [
                                    "0x90411a320000000000000000000000002d6b88e2b1f8f69c039375fcea4deb0f5cbe3a71000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000d988097fb8612cc24eec14542bc03424c656005f00000000000000000000000042000000000000000000000000000000000000060000000000000000000000002d6b88e2b1f8f69c039375fcea4deb0f5cbe3a71000000000000000000000000f0773508c585246bd09bfb401aa18b72685b03f900000000000000000000000000000000000000000000000000000000006f807800000000000000000000000000000000000000000000000000084749873fe3eb000000000000000000000000000000000000000000000000000888d50a1ceaf70000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d2137a6d0ef438a7c2bb38eeef364500271658be00000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000034000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000104e5b07cdb000000000000000000000000d87f0dd632cce09e3f78919c4399f4676bdaab9d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006f80780000000000000000000000002d6b88e2b1f8f69c039375fcea4deb0f5cbe3a7100000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002ed988097fb8612cc24eec14542bc03424c656005f000064420000000000000000000000000000000000000600002300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000648a6a1e850000000000000000000000004200000000000000000000000000000000000006000000000000000000000000353c1f0bc78fbbc245b3c93ef77b1dcc5b77d2a0000000000000000000000000000000000000000000000000000888d50a1ceaf700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f865422000000000000000000000000420000000000000000000000000000000000000600000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f990000000000000000000000004200000000000000000000000000000000000006000000000000000000000000f0773508c585246bd09bfb401aa18b72685b03f900000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
                                ],
                                "sourceStableReserveAmount": "2402248392764151",
                                "sourceStableReserveToken": {
                                    "decimals": 18,
                                    "symbol": "WETH",
                                    "name": "WETH",
                                    "chainId": "34443",
                                    "address": "0x4200000000000000000000000000000000000006",
                                    "resourceID": "native-eth",
                                    "isMintable": false,
                                    "isWrappedAsset": false,
                                    "isReserveAsset": false,
                                    "tokenInstance": {
                                        "decimals": 18,
                                        "symbol": "WETH",
                                        "name": "WETH",
                                        "chainId": 34443,
                                        "address": "0x4200000000000000000000000000000000000006"
                                    }
                                },
                                "slippageTolerance": 3,
                                "partnerId": 102
                            }
                        },
                        "adapters": []
                    },
                    {
                        "adapterId": "kim_deposit_v4",
                        "adapterType": "amm",
                        "sourceChainId": "34443",
                        "destChainId": "34443",
                        "adapterOptions": {
                            "receiverAddress": "0xcdACa3635f4B1C969af7C53988D4c8576698ba7C",
                            "data": {
                                "refundAddress": "0xcdACa3635f4B1C969af7C53988D4c8576698ba7C",
                                "token0": {
                                    "chainId": "34443",
                                    "address": "0x4200000000000000000000000000000000000006",
                                    "name": "WETH",
                                    "symbol": "WETH",
                                    "decimals": 18
                                },
                                "token1": {
                                    "chainId": "34443",
                                    "address": "0xd988097fb8612cc24eeC14542bC03424c656005f",
                                    "name": "USDC",
                                    "symbol": "USDC",
                                    "decimals": 6
                                },
                                "tickLower": "-196500",
                                "tickUpper": "-195000",
                                "amount0Desired": "2402248392764151",
                                "amount1Desired": "7307384",
                                "amount0Min": "2402248392764",
                                "amount1Min": "7307",
                                "recipient": "0xcdACa3635f4B1C969af7C53988D4c8576698ba7C",
                                "deadline": 1715124038929,
                                "token0Reserve": "410146758388091667620",
                                "token1Reserve": "527048861201",
                                "fee": 2990
                            }
                        },
                        "adapters": []
                    }
                ]
            }
        ],
        "quote": [
            {
                "amountSent": "15000000",
                "amountReceived": "14688209",
                "amountReceivedInEther": "14.688209",
                "exchangeRate": "",
                "estimatedTime": 40,
                "slippageTolerance": "2",
                "srcToken": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",
                "destToken": "0xd988097fb8612cc24eeC14542bC03424c656005f",
                "adapterId": "nitro_bridge",
                "bridgeFee": {
                    "amount": "7209",
                    "decimals": 6,
                    "symbol": "USDC"
                }
            },
            {
                "amountSent": "7307384",
                "amountReceived": "2402248392764151",
                "amountReceivedInEther": "0.002402",
                "exchangeRate": 1,
                "estimatedTime": 40,
                "slippageTolerance": "3",
                "srcToken": "0xd988097fb8612cc24eeC14542bC03424c656005f",
                "destToken": "0x4200000000000000000000000000000000000006",
                "adapterId": "dex_swap"
            },
            {
                "amountSent": 0,
                "amountReceived": 0,
                "amountReceivedInEther": 0,
                "srcToken": "",
                "destToken": "",
                "adapterId": "kim_deposit_v4",
                "estimatedTime": 0
            }
        ],
        "clientAddress": "0xcdACa3635f4B1C969af7C53988D4c8576698ba7C",
        "senderAddress": "0xcdACa3635f4B1C969af7C53988D4c8576698ba7C",
        "estimatedTime": 80
    }
}

Sample cURL

curl --location 'https://api.router.intent.testnet.routerprotocol.com/router-intent/protocol/get-protocol-quotes' \
--header 'Accept: */*' \
--header 'Accept-Language: en-GB,en-US;q=0.9,en;q=0.8' \
--header 'Connection: keep-alive' \
--header 'Content-Type: application/json' \
--header 'Origin: https://poc-intents-ui.vercel.app' \
--header 'Referer: https://poc-intents-ui.vercel.app/' \
--header 'Sec-Fetch-Dest: empty' \
--header 'Sec-Fetch-Mode: cors' \
--header 'Sec-Fetch-Site: cross-site' \
--header 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36' \
--header 'sec-ch-ua: "Chromium";v="122", "Not(A:Brand";v="24", "Google Chrome";v="122"' \
--header 'sec-ch-ua-mobile: ?0' \
--header 'sec-ch-ua-platform: "macOS"' \
--data '{
    "ReceiverAddress": "0xcdACa3635f4B1C969af7C53988D4c8576698ba7C",
    "SourceTokens": [
        {
            "chainId": "43114",
            "address": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",
            "name": "USDT",
            "symbol": "USDT",
            "decimals": 6
        }
    ],
    "DestinationTokens": [
        {
            "chainId": "34443",
            "address": "0x4200000000000000000000000000000000000006",
            "name": "WETH",
            "symbol": "WETH",
            "decimals": 18
        },
        {
            "chainId": "34443",
            "address": "0xd988097fb8612cc24eeC14542bC03424c656005f",
            "name": "USDC",
            "symbol": "USDC",
            "decimals": 6
        }
    ],
    "Amount": [
        "15000000"
    ],
    "SourceChainId": 43114,
    "Protocol": [
        {
            "protocolId": "kim",
            "chainId": "34443",
            "action": "deposit_v4",
            "poolId": "",
            "data":{
                "lowerTick":"-196500",
                "upperTick":"-195000"
            }
        }
    ]
}'


Compose Calldata

POST /adapter/compose-adapter-calldata

Fetch the calldata to execute the quote fetched via the get-protocol-quotes endpoint

Base URL

https://api.routerintents.com

Body

Payload object from the response of the get-protocol-quotes endpoint

Response

{
    "Code": 0,
    "Errors": [],
    "PayLoad": {
        "trnxId": "a2ad7e21-a7b5-4397-9434-c9d9da080d1a",
        "gasPrice": "877205",
        "calldata": "0x03fe2173000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000000010000000000000000000000009702230a8ea53601f5cd2dc00fdbc13d4df4a8c700000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000e4e1c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000005fd6fa3a5e7cad2610d0d837b89489c4c03ebcd400000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000027400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000019c00000000000000000000000000000000000000000000000000000000000000066333434343300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000cdaca3635f4b1c969af7c53988d4c8576698ba7c0000000000000000000000000000000000000000000000000000000000001c3000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000be000000000000000000000000000000000000000000000000000000000000000144d9733ca83610e1343ed2581d1779f294638bb3300000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000e4e1c00000000000000000000000000000000000000000000000000000000000e27f8b000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004406ebeb7028fc0fc06bb7706a736ac6ada8d2bf0000000000000000000000000000000000000000000000000000000000000aa000000000000000000000000000000000000000000000000000000000000000020000000000000000000000009702230a8ea53601f5cd2dc00fdbc13d4df4a8c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000fa200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000088490411a3200000000000000000000000074d307abb01372e47bd7be90a5f991331e05cccf000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000009702230a8ea53601f5cd2dc00fdbc13d4df4a8c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e00000000000000000000000074d307abb01372e47bd7be90a5f991331e05cccf0000000000000000000000004406ebeb7028fc0fc06bb7706a736ac6ada8d2bf0000000000000000000000000000000000000000000000000000000000e4e1c00000000000000000000000000000000000000000000000000000000000e27f8c0000000000000000000000000000000000000000000000000000000000e4c93d0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d2137a6d0ef438a7c2bb38eeef364500271658be000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000044000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064eb5625d90000000000000000000000009702230a8ea53601f5cd2dc00fdbc13d4df4a8c7000000000000000000000000c9bfc3efefe4cf96877009f75a61f5c1937e5d1a0000000000000000000000000000000000000000000000000000000000e4e1c000000000000000000000000000000000000000000000000000000000000000000000000000000000c9bfc3efefe4cf96877009f75a61f5c1937e5d1a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c49908fc8b0000000000000000000000009702230a8ea53601f5cd2dc00fdbc13d4df4a8c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e0000000000000000000000000000000000000000000000000000000000e4e1c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000074d307abb01372e47bd7be90a5f991331e05cccfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000648a6a1e85000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e000000000000000000000000353c1f0bc78fbbc245b3c93ef77b1dcc5b77d2a00000000000000000000000000000000000000000000000000000000000e4c93d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f865422000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e00000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f99000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e0000000000000000000000004406ebeb7028fc0fc06bb7706a736ac6ada8d2bf000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cdaca3635f4b1c969af7c53988d4c8576698ba7c00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000ea8fd31012991e1518fe47f7bc7849859385cf70000000000000000000000000d817dbcadc5919b2658a575af1b395dc87b9c3a3000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000009a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000006600000000000000000000000000000000000000000000000000000000006f80760000000000000000000000000000000000000000000000000000022e843b72ab000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001800000000000000000000000004d9733ca83610e1343ed2581d1779f294638bb330000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d988097fb8612cc24eec14542bc03424c656005f000000000000000000000000420000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000fa200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000078490411a320000000000000000000000002d6b88e2b1f8f69c039375fcea4deb0f5cbe3a71000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000d988097fb8612cc24eec14542bc03424c656005f00000000000000000000000042000000000000000000000000000000000000060000000000000000000000002d6b88e2b1f8f69c039375fcea4deb0f5cbe3a71000000000000000000000000f0773508c585246bd09bfb401aa18b72685b03f900000000000000000000000000000000000000000000000000000000006f80760000000000000000000000000000000000000000000000000008444109407cb8000000000000000000000000000000000000000000000000000885b48837ecc80000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d2137a6d0ef438a7c2bb38eeef364500271658be00000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000034000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000104e5b07cdb000000000000000000000000d87f0dd632cce09e3f78919c4399f4676bdaab9d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006f80760000000000000000000000002d6b88e2b1f8f69c039375fcea4deb0f5cbe3a7100000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002ed988097fb8612cc24eec14542bc03424c656005f000064420000000000000000000000000000000000000600002300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000648a6a1e850000000000000000000000004200000000000000000000000000000000000006000000000000000000000000353c1f0bc78fbbc245b3c93ef77b1dcc5b77d2a0000000000000000000000000000000000000000000000000000885b48837ecc800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f865422000000000000000000000000420000000000000000000000000000000000000600000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f990000000000000000000000004200000000000000000000000000000000000006000000000000000000000000f0773508c585246bd09bfb401aa18b72685b03f9000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000004200000000000000000000000000000000000006000000000000000000000000d988097fb8612cc24eec14542bc03424c656005ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd006cfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd0648ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000022e843b72ab0000000000000000000000000000000000000000000000000000000000001c8b000000000000000000000000cdaca3635f4b1c969af7c53988d4c8576698ba7c0000000000000000000000000000000000000000000000000000018f5557a9610000000000000000000000000000000000000000000000000000000000000d600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cdaca3635f4b1c969af7c53988d4c8576698ba7c00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000ea8fd31012991e1518fe47f7bc7849859385cf70000000000000000000000000d817dbcadc5919b2658a575af1b395dc87b9c3a3000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000009a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000006600000000000000000000000000000000000000000000000000000000006f80760000000000000000000000000000000000000000000000000000022e843b72ab000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001800000000000000000000000004d9733ca83610e1343ed2581d1779f294638bb330000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d988097fb8612cc24eec14542bc03424c656005f000000000000000000000000420000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000fa200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000078490411a320000000000000000000000002d6b88e2b1f8f69c039375fcea4deb0f5cbe3a71000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000d988097fb8612cc24eec14542bc03424c656005f00000000000000000000000042000000000000000000000000000000000000060000000000000000000000002d6b88e2b1f8f69c039375fcea4deb0f5cbe3a71000000000000000000000000f0773508c585246bd09bfb401aa18b72685b03f900000000000000000000000000000000000000000000000000000000006f80760000000000000000000000000000000000000000000000000008444109407cb8000000000000000000000000000000000000000000000000000885b48837ecc80000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d2137a6d0ef438a7c2bb38eeef364500271658be00000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000034000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000104e5b07cdb000000000000000000000000d87f0dd632cce09e3f78919c4399f4676bdaab9d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006f80760000000000000000000000002d6b88e2b1f8f69c039375fcea4deb0f5cbe3a7100000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002ed988097fb8612cc24eec14542bc03424c656005f000064420000000000000000000000000000000000000600002300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000648a6a1e850000000000000000000000004200000000000000000000000000000000000006000000000000000000000000353c1f0bc78fbbc245b3c93ef77b1dcc5b77d2a0000000000000000000000000000000000000000000000000000885b48837ecc800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f865422000000000000000000000000420000000000000000000000000000000000000600000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f990000000000000000000000004200000000000000000000000000000000000006000000000000000000000000f0773508c585246bd09bfb401aa18b72685b03f9000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000004200000000000000000000000000000000000006000000000000000000000000d988097fb8612cc24eec14542bc03424c656005ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd006cfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd0648ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000022e843b72ab0000000000000000000000000000000000000000000000000000000000001c8b000000000000000000000000cdaca3635f4b1c969af7c53988d4c8576698ba7c0000000000000000000000000000000000000000000000000000018f5557a961",
        "to": "0x2DdFbf2527384b84c335EAe9C79Ac85fd46ED8f3",
        "from": "0xcdACa3635f4B1C969af7C53988D4c8576698ba7C",
        "value": "0x00",
        "prioritySteps": [],
        "gasLimit": "2500000"
    }
}

Notes:

  • In the payload, prioritySteps will contain the approval transaction calldata that needs to be executed before performing the transaction.

  • The estimated gasLimit sent by our APIs are not based on any simulations because it is not possible to simulate gasLimit without having token allowance. The gasLimit sent by our APIs is a highly conservative estimate of the gas that a tx could use. Since the actual gas limit will be much lower, we suggest that the API users estimate the gasLimit themselves once the approval tx is mined.

Last updated