SwapMode API Reference

Get Quote

POST /protocol/get-protocol-quotes

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

Base URL

https://api.pod.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": [
        "9000000"
    ],
    "SourceChainId": 43114,
    "Protocol": [
        {
            "protocolId": "swapmode",
            "chainId": "34443",
            "action": "deposit_v2",
            "poolId": ""
        }
    ]
}
Name
Type
Description

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 SwapMode

SenderAddress

string (optional)

If SenderAddress is different from the ReceiverAddress

SlippageTolerance

float (optional)

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

Response

{
    "Code": 0,
    "Errors": [],
    "PayLoad": {
        "appId": "0",
        "quotationType": "BatchTransaction",
        "slippageTolerance": 2,
        "sourceTokens": [
            {
                "chainId": "43114",
                "address": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",
                "name": "USDT",
                "symbol": "USDT",
                "decimals": 6
            }
        ],
        "amount": [
            "9000000"
        ],
        "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": "9000000",
                    "amountOut": "8810902",
                    "destToken": {
                        "chainId": "34443",
                        "address": "0xd988097fb8612cc24eeC14542bC03424c656005f",
                        "name": "USDC",
                        "symbol": "USDC",
                        "decimals": 6
                    },
                    "receiverAddress": "0x4D9733ca83610E1343Ed2581d1779f294638BB33",
                    "data": {
                        "actionType": 1,
                        "refundAddress": "0xcdACa3635f4B1C969af7C53988D4c8576698ba7C",
                        "partnerId": 105,
                        "tokens": [
                            "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",
                            "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"
                        ],
                        "bridgeFee": {
                            "amount": "4717",
                            "decimals": 6,
                            "symbol": "USDC"
                        },
                        "isMainnet": true,
                        "quotationParams": {
                            "fromTokenAddress": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",
                            "toTokenAddress": "0xd988097fb8612cc24eeC14542bC03424c656005f",
                            "amount": "9000000",
                            "fromTokenChainId": 43114,
                            "toTokenChainId": "34443",
                            "partnerId": 105,
                            "additionalGasLimit": 160000,
                            "slippageTolerance": 2
                        },
                        "forwarderQuotation": {
                            "flowType": "trustless",
                            "isTransfer": "false",
                            "isWrappedToken": false,
                            "allowanceTo": "0x4406ebEb7028fc0fc06bB7706A736AC6ada8D2bF",
                            "bridgeFee": {
                                "amount": "4717",
                                "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": "9000000",
                                "stableReserveAmount": "8904618",
                                "path": [
                                    "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",
                                    "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"
                                ],
                                "flags": [
                                    "4002"
                                ],
                                "priceImpact": "0.00",
                                "tokenPath": "USDT->USDC",
                                "dataTx": [
                                    "0x90411a3200000000000000000000000074d307abb01372e47bd7be90a5f991331e05cccf000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000009702230a8ea53601f5cd2dc00fdbc13d4df4a8c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e00000000000000000000000074d307abb01372e47bd7be90a5f991331e05cccf0000000000000000000000004406ebeb7028fc0fc06bb7706a736ac6ada8d2bf0000000000000000000000000000000000000000000000000000000000895440000000000000000000000000000000000000000000000000000000000087dfab0000000000000000000000000000000000000000000000000000000000893f040000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d2137a6d0ef438a7c2bb38eeef364500271658be000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000044000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064eb5625d90000000000000000000000009702230a8ea53601f5cd2dc00fdbc13d4df4a8c7000000000000000000000000c9bfc3efefe4cf96877009f75a61f5c1937e5d1a000000000000000000000000000000000000000000000000000000000089544000000000000000000000000000000000000000000000000000000000000000000000000000000000c9bfc3efefe4cf96877009f75a61f5c1937e5d1a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c49908fc8b0000000000000000000000009702230a8ea53601f5cd2dc00fdbc13d4df4a8c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e0000000000000000000000000000000000000000000000000000000000895440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000074d307abb01372e47bd7be90a5f991331e05cccfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000648a6a1e85000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e000000000000000000000000353c1f0bc78fbbc245b3c93ef77b1dcc5b77d2a00000000000000000000000000000000000000000000000000000000000893f0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f865422000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e00000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f99000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e0000000000000000000000004406ebeb7028fc0fc06bb7706a736ac6ada8d2bf00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
                                ]
                            },
                            "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": "8899901",
                                "stableReserveAmount": "8899901",
                                "priceImpact": "0.00",
                                "tokenPath": "USDC",
                                "dataTx": [
                                    "0x00"
                                ],
                                "path": [
                                    "0xd988097fb8612cc24eeC14542bC03424c656005f"
                                ],
                                "flags": [
                                    "4002"
                                ]
                            },
                            "partnerId": "105",
                            "slippageTolerance": "2",
                            "estimatedTime": 40
                        },
                        "destinationAmount": "8899901",
                        "destinationAmountPromised": "8810902"
                    }
                },
                "adapters": [
                    {
                        "adapterId": "dex_swap",
                        "adapterType": "swap",
                        "sourceChainId": "34443",
                        "destChainId": "34443",
                        "adapterOptions": {
                            "srcToken": {
                                "chainId": "34443",
                                "address": "0xd988097fb8612cc24eeC14542bC03424c656005f",
                                "name": "USDC",
                                "symbol": "USDC",
                                "decimals": 6
                            },
                            "amountIn": "4383424",
                            "amountOut": "1480824574083610",
                            "destToken": {
                                "chainId": "34443",
                                "address": "0x4200000000000000000000000000000000000006",
                                "name": "WETH",
                                "symbol": "WETH",
                                "decimals": 18
                            },
                            "receiverAddress": "0x4D9733ca83610E1343Ed2581d1779f294638BB33",
                            "data": {
                                "tokens": [
                                    "0xd988097fb8612cc24eeC14542bC03424c656005f",
                                    "0x4200000000000000000000000000000000000006"
                                ],
                                "flags": [
                                    "4002"
                                ],
                                "dataTx": [
                                    "0x90411a320000000000000000000000002d6b88e2b1f8f69c039375fcea4deb0f5cbe3a71000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000d988097fb8612cc24eec14542bc03424c656005f00000000000000000000000042000000000000000000000000000000000000060000000000000000000000002d6b88e2b1f8f69c039375fcea4deb0f5cbe3a71000000000000000000000000f0773508c585246bd09bfb401aa18b72685b03f9000000000000000000000000000000000000000000000000000000000042e2c0000000000000000000000000000000000000000000000000000527ddb64237d2000000000000000000000000000000000000000000000000000542cd56b6821a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d2137a6d0ef438a7c2bb38eeef364500271658be00000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000380000000000000000000000000000000000000000000000000000000000000068000000000000000000000000000000000000000000000000000000000000007a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000002449f865422000000000000000000000000d988097fb8612cc24eec14542bc03424c656005f00000000000000000000000000000001000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000104e5b07cdb0000000000000000000000000a736e361ab594d7c0c692eb9c5c86b75d6f666c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000002d6b88e2b1f8f69c039375fcea4deb0f5cbe3a7100000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002ed988097fb8612cc24eec14542bc03424c656005f0009c442000000000000000000000000000000000000060000230000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000002449f865422000000000000000000000000d988097fb8612cc24eec14542bc03424c656005f00000000000000000000000000000013000000000000000000000000000000130000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000104e5b07cdb000000000000000000000000f2e9c024f1c0b7a2a4ea11243c2d86a7b38dd72f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000002d6b88e2b1f8f69c039375fcea4deb0f5cbe3a7100000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002ed988097fb8612cc24eec14542bc03424c656005f0001f442000000000000000000000000000000000000060000230000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000648a6a1e850000000000000000000000004200000000000000000000000000000000000006000000000000000000000000353c1f0bc78fbbc245b3c93ef77b1dcc5b77d2a0000000000000000000000000000000000000000000000000000542cd56b6821a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f865422000000000000000000000000420000000000000000000000000000000000000600000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f990000000000000000000000004200000000000000000000000000000000000006000000000000000000000000f0773508c585246bd09bfb401aa18b72685b03f900000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
                                ],
                                "sourceStableReserveAmount": "1480824574083610",
                                "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": 2,
                                "partnerId": 105
                            }
                        },
                        "adapters": []
                    },
                    {
                        "adapterId": "swapmode_deposit_v2",
                        "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
                                },
                                "amount0Desired": "1480824574083610",
                                "amount1Desired": "4383424",
                                "amount0Min": "1480824574084",
                                "amount1Min": "4383",
                                "recipient": "0xcdACa3635f4B1C969af7C53988D4c8576698ba7C",
                                "deadline": 1715592484782,
                                "token0Reserve": "97873003981880022712",
                                "token1Reserve": "289789788104"
                            }
                        },
                        "adapters": []
                    }
                ]
            }
        ],
        "quote": [
            {
                "amountSent": "9000000",
                "amountReceived": "8810902",
                "amountReceivedInEther": "8.810902",
                "exchangeRate": "",
                "estimatedTime": 40,
                "slippageTolerance": "2",
                "srcToken": "0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",
                "destToken": "0xd988097fb8612cc24eeC14542bC03424c656005f",
                "adapterId": "nitro_bridge",
                "bridgeFee": {
                    "amount": "4717",
                    "decimals": 6,
                    "symbol": "USDC"
                }
            },
            {
                "amountSent": "4383424",
                "amountReceived": "1480824574083610",
                "amountReceivedInEther": "0.001481",
                "exchangeRate": 1,
                "estimatedTime": 40,
                "slippageTolerance": "2",
                "srcToken": "0xd988097fb8612cc24eeC14542bC03424c656005f",
                "destToken": "0x4200000000000000000000000000000000000006",
                "adapterId": "dex_swap"
            },
            {
                "amountSent": 0,
                "amountReceived": 0,
                "amountReceivedInEther": 0,
                "srcToken": "",
                "destToken": "",
                "adapterId": "swapmode_deposit_v2",
                "estimatedTime": 0
            }
        ],
        "clientAddress": "0xcdACa3635f4B1C969af7C53988D4c8576698ba7C",
        "senderAddress": "0xcdACa3635f4B1C969af7C53988D4c8576698ba7C",
        "estimatedTime": 80
    }
}

Sample cURL

curl --location 'https://api.pod.routerintents.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": [
        "9000000"
    ],
    "SourceChainId": 43114,
    "Protocol": [
        {
            "protocolId": "swapmode",
            "chainId": "34443",
            "action": "deposit_v2",
            "poolId": ""
        }
    ]
}'


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.pod.routerintents.com

Body

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

Response

{
    "Code": 0,
    "Errors": [],
    "PayLoad": {
        "trnxId": "270adf77-83bf-4617-8dc5-43bf58e0641d",
        "gasPrice": "526550000000000",
        "calldata": "0x03fe2173000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000000010000000000000000000000009702230a8ea53601f5cd2dc00fdbc13d4df4a8c70000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000089544000000000000000000000000000000000000000000000000000000000000000010000000000000000000000005fd6fa3a5e7cad2610d0d837b89489c4c03ebcd40000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000002f80000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000001de00000000000000000000000000000000000000000000000000000000000000069333434343300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000cdaca3635f4b1c969af7c53988d4c8576698ba7c000000000000000000000000000000000000000000000000000000000000126d00000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000be000000000000000000000000000000000000000000000000000000000000000144d9733ca83610e1343ed2581d1779f294638bb3300000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000895440000000000000000000000000000000000000000000000000000000000087dfaa000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004406ebeb7028fc0fc06bb7706a736ac6ada8d2bf0000000000000000000000000000000000000000000000000000000000000aa000000000000000000000000000000000000000000000000000000000000000020000000000000000000000009702230a8ea53601f5cd2dc00fdbc13d4df4a8c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000fa200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000088490411a3200000000000000000000000074d307abb01372e47bd7be90a5f991331e05cccf000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000009702230a8ea53601f5cd2dc00fdbc13d4df4a8c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e00000000000000000000000074d307abb01372e47bd7be90a5f991331e05cccf0000000000000000000000004406ebeb7028fc0fc06bb7706a736ac6ada8d2bf0000000000000000000000000000000000000000000000000000000000895440000000000000000000000000000000000000000000000000000000000087dfab0000000000000000000000000000000000000000000000000000000000893f040000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d2137a6d0ef438a7c2bb38eeef364500271658be000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000044000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064eb5625d90000000000000000000000009702230a8ea53601f5cd2dc00fdbc13d4df4a8c7000000000000000000000000c9bfc3efefe4cf96877009f75a61f5c1937e5d1a000000000000000000000000000000000000000000000000000000000089544000000000000000000000000000000000000000000000000000000000000000000000000000000000c9bfc3efefe4cf96877009f75a61f5c1937e5d1a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c49908fc8b0000000000000000000000009702230a8ea53601f5cd2dc00fdbc13d4df4a8c7000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e0000000000000000000000000000000000000000000000000000000000895440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000074d307abb01372e47bd7be90a5f991331e05cccfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000648a6a1e85000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e000000000000000000000000353c1f0bc78fbbc245b3c93ef77b1dcc5b77d2a00000000000000000000000000000000000000000000000000000000000893f0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f865422000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e00000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f99000000000000000000000000b97ef9ef8734c71904d8002f8b6bc66dd9c48a6e0000000000000000000000004406ebeb7028fc0fc06bb7706a736ac6ada8d2bf0000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cdaca3635f4b1c969af7c53988d4c8576698ba7c00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000ea8fd31012991e1518fe47f7bc7849859385cf700000000000000000000000001047770a9eb317667faa472ed2579e6f8da086c6000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000e600000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000069000000000000000000000000000000000000000000000000000000000042e2c000000000000000000000000000000000000000000000000000000158c805d084000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001800000000000000000000000004d9733ca83610e1343ed2581d1779f294638bb330000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d988097fb8612cc24eec14542bc03424c656005f000000000000000000000000420000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000fa2000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000be490411a320000000000000000000000002d6b88e2b1f8f69c039375fcea4deb0f5cbe3a71000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000d988097fb8612cc24eec14542bc03424c656005f00000000000000000000000042000000000000000000000000000000000000060000000000000000000000002d6b88e2b1f8f69c039375fcea4deb0f5cbe3a71000000000000000000000000f0773508c585246bd09bfb401aa18b72685b03f9000000000000000000000000000000000000000000000000000000000042e2c0000000000000000000000000000000000000000000000000000527ddb64237d2000000000000000000000000000000000000000000000000000542cd56b6821a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d2137a6d0ef438a7c2bb38eeef364500271658be00000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000380000000000000000000000000000000000000000000000000000000000000068000000000000000000000000000000000000000000000000000000000000007a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000002449f865422000000000000000000000000d988097fb8612cc24eec14542bc03424c656005f00000000000000000000000000000001000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000104e5b07cdb0000000000000000000000000a736e361ab594d7c0c692eb9c5c86b75d6f666c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000002d6b88e2b1f8f69c039375fcea4deb0f5cbe3a7100000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002ed988097fb8612cc24eec14542bc03424c656005f0009c442000000000000000000000000000000000000060000230000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000002449f865422000000000000000000000000d988097fb8612cc24eec14542bc03424c656005f00000000000000000000000000000013000000000000000000000000000000130000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000104e5b07cdb000000000000000000000000f2e9c024f1c0b7a2a4ea11243c2d86a7b38dd72f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000002d6b88e2b1f8f69c039375fcea4deb0f5cbe3a7100000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002ed988097fb8612cc24eec14542bc03424c656005f0001f442000000000000000000000000000000000000060000230000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000648a6a1e850000000000000000000000004200000000000000000000000000000000000006000000000000000000000000353c1f0bc78fbbc245b3c93ef77b1dcc5b77d2a0000000000000000000000000000000000000000000000000000542cd56b6821a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f865422000000000000000000000000420000000000000000000000000000000000000600000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f990000000000000000000000004200000000000000000000000000000000000006000000000000000000000000f0773508c585246bd09bfb401aa18b72685b03f9000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000004200000000000000000000000000000000000006000000000000000000000000d988097fb8612cc24eec14542bc03424c656005fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000158c805d084000000000000000000000000000000000000000000000000000000000000111f000000000000000000000000cdaca3635f4b1c969af7c53988d4c8576698ba7c0000000000000000000000000000000000000000000000000000018f7147d7ae00000000000000000000000000000000000000000000000000000000000011800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cdaca3635f4b1c969af7c53988d4c8576698ba7c00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000ea8fd31012991e1518fe47f7bc7849859385cf700000000000000000000000001047770a9eb317667faa472ed2579e6f8da086c6000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000e600000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000069000000000000000000000000000000000000000000000000000000000042e2c000000000000000000000000000000000000000000000000000000158c805d084000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000001800000000000000000000000004d9733ca83610e1343ed2581d1779f294638bb330000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d988097fb8612cc24eec14542bc03424c656005f000000000000000000000000420000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000fa2000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000be490411a320000000000000000000000002d6b88e2b1f8f69c039375fcea4deb0f5cbe3a71000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000d988097fb8612cc24eec14542bc03424c656005f00000000000000000000000042000000000000000000000000000000000000060000000000000000000000002d6b88e2b1f8f69c039375fcea4deb0f5cbe3a71000000000000000000000000f0773508c585246bd09bfb401aa18b72685b03f9000000000000000000000000000000000000000000000000000000000042e2c0000000000000000000000000000000000000000000000000000527ddb64237d2000000000000000000000000000000000000000000000000000542cd56b6821a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000d2137a6d0ef438a7c2bb38eeef364500271658be00000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000380000000000000000000000000000000000000000000000000000000000000068000000000000000000000000000000000000000000000000000000000000007a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000002449f865422000000000000000000000000d988097fb8612cc24eec14542bc03424c656005f00000000000000000000000000000001000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000104e5b07cdb0000000000000000000000000a736e361ab594d7c0c692eb9c5c86b75d6f666c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000002d6b88e2b1f8f69c039375fcea4deb0f5cbe3a7100000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002ed988097fb8612cc24eec14542bc03424c656005f0009c442000000000000000000000000000000000000060000230000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000002449f865422000000000000000000000000d988097fb8612cc24eec14542bc03424c656005f00000000000000000000000000000013000000000000000000000000000000130000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000104e5b07cdb000000000000000000000000f2e9c024f1c0b7a2a4ea11243c2d86a7b38dd72f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000002d6b88e2b1f8f69c039375fcea4deb0f5cbe3a7100000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002ed988097fb8612cc24eec14542bc03424c656005f0001f442000000000000000000000000000000000000060000230000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000648a6a1e850000000000000000000000004200000000000000000000000000000000000006000000000000000000000000353c1f0bc78fbbc245b3c93ef77b1dcc5b77d2a0000000000000000000000000000000000000000000000000000542cd56b6821a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001a49f865422000000000000000000000000420000000000000000000000000000000000000600000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000004400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000064d1660f990000000000000000000000004200000000000000000000000000000000000006000000000000000000000000f0773508c585246bd09bfb401aa18b72685b03f9000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000004200000000000000000000000000000000000006000000000000000000000000d988097fb8612cc24eec14542bc03424c656005fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000158c805d084000000000000000000000000000000000000000000000000000000000000111f000000000000000000000000cdaca3635f4b1c969af7c53988d4c8576698ba7c0000000000000000000000000000000000000000000000000000018f7147d7ae",
        "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