BaseSwap API Reference

Get Quote

POST /protocol/get-protocol-quotes

Fetch the quote for adding liquidity into BaseSwap 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": "8453",
            "address": "0x4200000000000000000000000000000000000006",
            "name": "WETH",
            "symbol": "WETH",
            "decimals": 18
        },
        {
            "chainId": "8453",
            "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
            "name": "USDC",
            "symbol": "USDC",
            "decimals": 6
        }
    ],
    "Amount": [
        "10000000"
    ],
    "SourceChainId": 43114,
    "Protocol": [
        {
            "protocolId": "baseswap",
            "chainId": "8453",
            "action": "deposit",
            "poolId": "",
            "data":{
                "tickLower": "-206590",
                "tickUpper": "-186590",
                "fee": 450
            }
        }
    ]
}
NameTypeDescription

ReceiverAddress

string (required)

Wallet address to receive the LP token

SourceTokens

array (required)

Array of tokens provided by the user on the source side

Amount

array (required)

Array of token amounts being supplied

DestinationTokens

array (required)

Array of tokens for which the liquidity needs to be added

SourceChainId

int (required)

Network ID of the starting chain, for example: 137 for Polygon

Protocol

object (required)

Intent adapter information for BaseSwap

SenderAddress

string (optional)

If SenderAddress is different from the ReceiverAddress

SlippageTolerance

float (optional)

1 means 1%; by default, this is set to 2%.

BaseSwap Protocol Data

// For protocol, pass the following:
{
    "protocolId": "baseswap",
    "chainId": "8453", // Base
    "action": "deposit",
    "poolId": "",
    "data": {
       "tickLower": "-206590", // based on the range selected by the user for adding liquidity
        "tickUpper": "-186590",
        "fee": 450 // based on the fee tier selected by the user
        }
}

Response

{
    "Code": 0,
    "Errors": [],
    "PayLoad": {
        "appId": "0",
        "quotationType": "BatchTransaction",
        "slippageTolerance": 2,
        "sourceTokens": [
            {
                "chainId": "43114",
                "address": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",
                "name": "USDT",
                "symbol": "USDT",
                "decimals": 6
            }
        ],
        "amount": [
            "10000000"
        ],
        "sourceChainId": 43114,
        "destinationChainId": 8453,
        "adapters": [
            {
                "adapterId": "nitro_bridge",
                "adapterType": "bridge",
                "sourceChainId": 43114,
                "destChainId": "8453",
                "adapterOptions": {
                    "srcToken": {
                        "chainId": "43114",
                        "address": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",
                        "name": "USDT",
                        "symbol": "USDT",
                        "decimals": 6
                    },
                    "amountIn": "10000000",
                    "amountOut": "9611306",
                    "destToken": {
                        "chainId": "8453",
                        "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                        "name": "USDC",
                        "symbol": "USDC",
                        "decimals": 6
                    },
                    "receiverAddress": "0x87a4e0abA5960912E65fBfbeFEbA62F097e757bd",
                    "data": {
                        "actionType": 1,
                        "refundAddress": "0xcdACa3635f4B1C969af7C53988D4c8576698ba7C",
                        "partnerId": 104,
                        "tokens": [
                            "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",
                            "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"
                        ],
                        "bridgeFee": {
                            "amount": "190958",
                            "decimals": 6,
                            "symbol": "USDC",
                            "address": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"
                        },
                        "isMainnet": true,
                        "quotationParams": {
                            "fromTokenAddress": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",
                            "toTokenAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                            "amount": "10000000",
                            "fromTokenChainId": 43114,
                            "toTokenChainId": "8453",
                            "partnerId": 104,
                            "additionalGasLimit": 160000,
                            "slippageTolerance": 2
                        },
                        "forwarderQuotation": {
                            "flowType": "trustless",
                            "isTransfer": "false",
                            "isWrappedToken": false,
                            "allowanceTo": "0x4406ebEb7028fc0fc06bB7706A736AC6ada8D2bF",
                            "bridgeFee": {
                                "amount": "190958",
                                "decimals": 6,
                                "symbol": "USDC",
                                "address": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"
                            },
                            "fuelTransfer": null,
                            "fromTokenAddress": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",
                            "toTokenAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                            "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": "10000000",
                                "stableReserveAmount": "9899348",
                                "path": [
                                    "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",
                                    "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"
                                ],
                                "flags": [
                                    "4002"
                                ],
                                "priceImpact": "0.00",
                                "tokenPath": "USDT->USDC",
                                "dataTx": [
                                    "0x90411a3200000000000000000000000074d307abb01372e47bd7be90a5f991331e05cccf000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000009702230a8ea53601f5cd2dc00fdbc13d4df4a8c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e00000000000000000000000074d307abb01372e47bd7be90a5f991331e05cccf0000000000000000000000004406ebeb7028fc0fc06bb7706a736ac6ada8d2bf00000000000000000000000000000000000000000000000000000000009896800000000000000000000000000000000000000000000000000000000000970d5500000000000000000000000000000000000000000000000000000000009893ee0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d2137a6d0ef438a7c2bb38eeef364500271658be000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000044000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064eb5625d90000000000000000000000009702230a8ea53601f5cd2dc00fdbc13d4df4a8c7000000000000000000000000c9bfc3efefe4cf96877009f75a61f5c1937e5d1a000000000000000000000000000000000000000000000000000000000098968000000000000000000000000000000000000000000000000000000000000000000000000000000000c9bfc3efefe4cf96877009f75a61f5c1937e5d1a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c49908fc8b0000000000000000000000009702230a8ea53601f5cd2dc00fdbc13d4df4a8c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e0000000000000000000000000000000000000000000000000000000000989680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000074d307abb01372e47bd7be90a5f991331e05cccfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000648a6a1e85000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e000000000000000000000000353c1f0bc78fbbc245b3c93ef77b1dcc5b77d2a000000000000000000000000000000000000000000000000000000000009893ee00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f865422000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e00000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f99000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e0000000000000000000000004406ebeb7028fc0fc06bb7706a736ac6ada8d2bf00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
                                ]
                            },
                            "destination": {
                                "chainId": "8453",
                                "chainType": "evm",
                                "asset": {
                                    "decimals": 6,
                                    "symbol": "USDC",
                                    "name": "USDC",
                                    "chainId": "8453",
                                    "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                                    "resourceID": "usdc-circle",
                                    "isMintable": false,
                                    "isWrappedAsset": false,
                                    "isReserveAsset": false,
                                    "tokenInstance": {
                                        "decimals": 6,
                                        "symbol": "USDC",
                                        "name": "USDC",
                                        "chainId": 8453,
                                        "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
                                    }
                                },
                                "stableReserveAsset": {
                                    "decimals": 6,
                                    "symbol": "USDC",
                                    "name": "USDC",
                                    "chainId": "8453",
                                    "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                                    "resourceID": "usdc-circle",
                                    "isMintable": false,
                                    "isWrappedAsset": false,
                                    "isReserveAsset": false
                                },
                                "tokenAmount": "9708390",
                                "stableReserveAmount": "9708390",
                                "priceImpact": "0.00",
                                "tokenPath": "USDC",
                                "dataTx": [
                                    "0x00"
                                ],
                                "path": [
                                    "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
                                ],
                                "flags": []
                            },
                            "partnerId": "104",
                            "slippageTolerance": "2",
                            "estimatedTime": 40
                        },
                        "destinationAmount": "9708390",
                        "destinationAmountPromised": "9611306"
                    }
                },
                "adapters": [
                    {
                        "adapterId": "dex_swap",
                        "adapterType": "swap",
                        "sourceChainId": "8453",
                        "destChainId": "8453",
                        "adapterOptions": {
                            "srcToken": {
                                "chainId": "8453",
                                "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                                "name": "USDC",
                                "symbol": "USDC",
                                "decimals": 6
                            },
                            "amountIn": "4781625",
                            "amountOut": "1539187609277352",
                            "destToken": {
                                "chainId": "8453",
                                "address": "0x4200000000000000000000000000000000000006",
                                "name": "WETH",
                                "symbol": "WETH",
                                "decimals": 18
                            },
                            "receiverAddress": "0x87a4e0abA5960912E65fBfbeFEbA62F097e757bd",
                            "data": {
                                "tokens": [
                                    "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                                    "0x4200000000000000000000000000000000000006"
                                ],
                                "flags": [
                                    "4002"
                                ],
                                "dataTx": [
                                    "0x90411a32000000000000000000000000170100a288dc3d7e83fea20441f98166b15b6df0000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda029130000000000000000000000004200000000000000000000000000000000000006000000000000000000000000170100a288dc3d7e83fea20441f98166b15b6df000000000000000000000000002d728b9c1513478a6b6de77a92648e1d8f801e7000000000000000000000000000000000000000000000000000000000048f63900000000000000000000000000000000000000000000000000054de2f0c5d977000000000000000000000000000000000000000000000000000577e20ab193a80000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d2137a6d0ef438a7c2bb38eeef364500271658be00000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000034000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000104e5b07cdb000000000000000000000000b4cb800910b228ed3d0834cf79d697127bbb00e50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000048f639000000000000000000000000170100a288dc3d7e83fea20441f98166b15b6df000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002e833589fcd6edb6e08f4c7c32d4f71b54bda02913000064420000000000000000000000000000000000000600000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000648a6a1e850000000000000000000000004200000000000000000000000000000000000006000000000000000000000000353c1f0bc78fbbc245b3c93ef77b1dcc5b77d2a0000000000000000000000000000000000000000000000000000577e20ab193a800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f865422000000000000000000000000420000000000000000000000000000000000000600000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f99000000000000000000000000420000000000000000000000000000000000000600000000000000000000000002d728b9c1513478a6b6de77a92648e1d8f801e700000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
                                ],
                                "sourceStableReserveAmount": "1539187609277352",
                                "sourceStableReserveToken": {
                                    "decimals": 18,
                                    "symbol": "WETH",
                                    "name": "WETH",
                                    "chainId": "8453",
                                    "address": "0x4200000000000000000000000000000000000006",
                                    "resourceID": "native-eth",
                                    "isMintable": false,
                                    "isWrappedAsset": false,
                                    "isReserveAsset": false,
                                    "tokenInstance": {
                                        "decimals": 18,
                                        "symbol": "WETH",
                                        "name": "WETH",
                                        "chainId": 8453,
                                        "address": "0x4200000000000000000000000000000000000006"
                                    }
                                },
                                "slippageTolerance": 3,
                                "partnerId": 104
                            }
                        },
                        "adapters": []
                    },
                    {
                        "adapterId": "baseswap_deposit",
                        "adapterType": "amm",
                        "sourceChainId": "8453",
                        "destChainId": "8453",
                        "adapterOptions": {
                            "receiverAddress": "0xcdACa3635f4B1C969af7C53988D4c8576698ba7C",
                            "data": {
                                "refundAddress": "0xcdACa3635f4B1C969af7C53988D4c8576698ba7C",
                                "token0": {
                                    "chainId": "8453",
                                    "address": "0x4200000000000000000000000000000000000006",
                                    "name": "WETH",
                                    "symbol": "WETH",
                                    "decimals": 18
                                },
                                "token1": {
                                    "chainId": "8453",
                                    "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                                    "name": "USDC",
                                    "symbol": "USDC",
                                    "decimals": 6
                                },
                                "tickLower": "-206590",
                                "tickUpper": "-186590",
                                "amount0Desired": "1539187609277352",
                                "amount1Desired": "4781625",
                                "amount0Min": "1539187609277",
                                "amount1Min": "4782",
                                "recipient": "0xcdACa3635f4B1C969af7C53988D4c8576698ba7C",
                                "deadline": 1716206092135,
                                "fee": 450
                            }
                        },
                        "adapters": []
                    }
                ]
            }
        ],
        "quote": [
            {
                "amountSent": "10000000",
                "amountReceived": "9611306",
                "amountReceivedInEther": "9.611306",
                "exchangeRate": "",
                "estimatedTime": 40,
                "slippageTolerance": "2",
                "srcToken": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",
                "destToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "adapterId": "nitro_bridge",
                "bridgeFee": {
                    "amount": "190958",
                    "decimals": 6,
                    "symbol": "USDC",
                    "address": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"
                }
            },
            {
                "amountSent": "4781625",
                "amountReceived": "1539187609277352",
                "amountReceivedInEther": "0.001539",
                "exchangeRate": 1,
                "estimatedTime": 40,
                "slippageTolerance": "3",
                "srcToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
                "destToken": "0x4200000000000000000000000000000000000006",
                "adapterId": "dex_swap"
            },
            {
                "amountSent": 0,
                "amountReceived": 0,
                "amountReceivedInEther": 0,
                "srcToken": "",
                "destToken": "",
                "adapterId": "baseswap_deposit",
                "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": "8453",
            "address": "0x4200000000000000000000000000000000000006",
            "name": "WETH",
            "symbol": "WETH",
            "decimals": 18
        },
        {
            "chainId": "8453",
            "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
            "name": "USDC",
            "symbol": "USDC",
            "decimals": 6
        }
    ],
    "Amount": [
        "10000000"
    ],
    "SourceChainId": 43114,
    "Protocol": [
        {
            "protocolId": "baseswap",
            "chainId": "8453",
            "action": "deposit",
            "poolId": "",
            "data":{
                "tickLower": "-206590",
                "tickUpper": "-186590",
                "fee": 450
            }
        }
    ]
}'


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": "0c926d3f-6585-4e42-997f-b212ba561709",
        "gasPrice": "526550000000000",
        "calldata": "0x03fe2173000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000000010000000000000000000000009702230a8ea53601f5cd2dc00fdbc13d4df4a8c70000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000098968000000000000000000000000000000000000000000000000000000000000000010000000000000000000000005fd6fa3a5e7cad2610d0d837b89489c4c03ebcd400000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000027800000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000019e00000000000000000000000000000000000000000000000000000000000000068383435330000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000cdaca3635f4b1c969af7c53988d4c8576698ba7c000000000000000000000000000000000000000000000000000000000002e9ee00000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000be0000000000000000000000000000000000000000000000000000000000000001487a4e0aba5960912e65fbfbefeba62f097e757bd000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000009896800000000000000000000000000000000000000000000000000000000000970d54000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004406ebeb7028fc0fc06bb7706a736ac6ada8d2bf0000000000000000000000000000000000000000000000000000000000000aa000000000000000000000000000000000000000000000000000000000000000020000000000000000000000009702230a8ea53601f5cd2dc00fdbc13d4df4a8c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000fa200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000088490411a3200000000000000000000000074d307abb01372e47bd7be90a5f991331e05cccf000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000009702230a8ea53601f5cd2dc00fdbc13d4df4a8c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e00000000000000000000000074d307abb01372e47bd7be90a5f991331e05cccf0000000000000000000000004406ebeb7028fc0fc06bb7706a736ac6ada8d2bf00000000000000000000000000000000000000000000000000000000009896800000000000000000000000000000000000000000000000000000000000970d5500000000000000000000000000000000000000000000000000000000009893ee0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d2137a6d0ef438a7c2bb38eeef364500271658be000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000044000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064eb5625d90000000000000000000000009702230a8ea53601f5cd2dc00fdbc13d4df4a8c7000000000000000000000000c9bfc3efefe4cf96877009f75a61f5c1937e5d1a000000000000000000000000000000000000000000000000000000000098968000000000000000000000000000000000000000000000000000000000000000000000000000000000c9bfc3efefe4cf96877009f75a61f5c1937e5d1a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c49908fc8b0000000000000000000000009702230a8ea53601f5cd2dc00fdbc13d4df4a8c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e0000000000000000000000000000000000000000000000000000000000989680000000000000000000000000000000000000000000000000000000000000000000000000000000000000000074d307abb01372e47bd7be90a5f991331e05cccfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000648a6a1e85000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e000000000000000000000000353c1f0bc78fbbc245b3c93ef77b1dcc5b77d2a000000000000000000000000000000000000000000000000000000000009893ee00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f865422000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e00000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f99000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e0000000000000000000000004406ebeb7028fc0fc06bb7706a736ac6ada8d2bf000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cdaca3635f4b1c969af7c53988d4c8576698ba7c00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000000200000000000000000000000057f41efeab626b0b529a54532dc31f4a3a7e0f25000000000000000000000000de7a9febd3c80ab4c17f76ac347292bdc7720f06000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000009a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000068000000000000000000000000000000000000000000000000000000000048f639000000000000000000000000000000000000000000000000000001665ebb0ebd0000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000087a4e0aba5960912e65fbfbefeba62f097e757bd0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913000000000000000000000000420000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000fa200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000078490411a32000000000000000000000000170100a288dc3d7e83fea20441f98166b15b6df0000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda029130000000000000000000000004200000000000000000000000000000000000006000000000000000000000000170100a288dc3d7e83fea20441f98166b15b6df000000000000000000000000002d728b9c1513478a6b6de77a92648e1d8f801e7000000000000000000000000000000000000000000000000000000000048f63900000000000000000000000000000000000000000000000000054de2f0c5d977000000000000000000000000000000000000000000000000000577e20ab193a80000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d2137a6d0ef438a7c2bb38eeef364500271658be00000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000034000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000104e5b07cdb000000000000000000000000b4cb800910b228ed3d0834cf79d697127bbb00e50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000048f639000000000000000000000000170100a288dc3d7e83fea20441f98166b15b6df000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002e833589fcd6edb6e08f4c7c32d4f71b54bda02913000064420000000000000000000000000000000000000600000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000648a6a1e850000000000000000000000004200000000000000000000000000000000000006000000000000000000000000353c1f0bc78fbbc245b3c93ef77b1dcc5b77d2a0000000000000000000000000000000000000000000000000000577e20ab193a800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f865422000000000000000000000000420000000000000000000000000000000000000600000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f99000000000000000000000000420000000000000000000000000000000000000600000000000000000000000002d728b9c1513478a6b6de77a92648e1d8f801e7000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001600000000000000000000000004200000000000000000000000000000000000006000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda0291300000000000000000000000000000000000000000000000000000000000001c2fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcd902fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd2722ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000000001665ebb0ebd00000000000000000000000000000000000000000000000000000000000012ae000000000000000000000000cdaca3635f4b1c969af7c53988d4c8576698ba7c0000000000000000000000000000000000000000000000000000018f95dabf670000000000000000000000000000000000000000000000000000000000000d800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cdaca3635f4b1c969af7c53988d4c8576698ba7c00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000000200000000000000000000000057f41efeab626b0b529a54532dc31f4a3a7e0f25000000000000000000000000de7a9febd3c80ab4c17f76ac347292bdc7720f06000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000009a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000068000000000000000000000000000000000000000000000000000000000048f639000000000000000000000000000000000000000000000000000001665ebb0ebd0000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000087a4e0aba5960912e65fbfbefeba62f097e757bd0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913000000000000000000000000420000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000fa200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000078490411a32000000000000000000000000170100a288dc3d7e83fea20441f98166b15b6df0000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda029130000000000000000000000004200000000000000000000000000000000000006000000000000000000000000170100a288dc3d7e83fea20441f98166b15b6df000000000000000000000000002d728b9c1513478a6b6de77a92648e1d8f801e7000000000000000000000000000000000000000000000000000000000048f63900000000000000000000000000000000000000000000000000054de2f0c5d977000000000000000000000000000000000000000000000000000577e20ab193a80000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d2137a6d0ef438a7c2bb38eeef364500271658be00000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000034000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000104e5b07cdb000000000000000000000000b4cb800910b228ed3d0834cf79d697127bbb00e50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000048f639000000000000000000000000170100a288dc3d7e83fea20441f98166b15b6df000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002e833589fcd6edb6e08f4c7c32d4f71b54bda02913000064420000000000000000000000000000000000000600000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000648a6a1e850000000000000000000000004200000000000000000000000000000000000006000000000000000000000000353c1f0bc78fbbc245b3c93ef77b1dcc5b77d2a0000000000000000000000000000000000000000000000000000577e20ab193a800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f865422000000000000000000000000420000000000000000000000000000000000000600000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f99000000000000000000000000420000000000000000000000000000000000000600000000000000000000000002d728b9c1513478a6b6de77a92648e1d8f801e7000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001600000000000000000000000004200000000000000000000000000000000000006000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda0291300000000000000000000000000000000000000000000000000000000000001c2fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcd902fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd2722ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000000001665ebb0ebd00000000000000000000000000000000000000000000000000000000000012ae000000000000000000000000cdaca3635f4b1c969af7c53988d4c8576698ba7c0000000000000000000000000000000000000000000000000000018f95dabf67",
        "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