Skip to main content

ActiveRoutesController_nextTx

GET 

/v2/route/build-next-tx

ActiveRoutesController_nextTx

Request

Query Parameters

    activeRouteId stringrequired

    Id of Active Route.

    Example: 420
    newRecipient string

    This will override the existing recipient if specified for the tx. !!If overridden the recipient will be change in the Database too.

    Example: 0x1af3f329e8be154074d8769d1ffa4ee058b1dbc3
    bridgeSlippage string

    bridgeSlippage between 0 - 100. Overrides the default bridge slippage in the route. NOTE - Slippage is not present for all bridges.

    Example: 1
    swapSlippage string

    swapSlippage between 0 - 100. Overrides the default swap slippage in the route.

    Example: 1

Header Parameters

    API-KEY string

Responses

Get next tx details of an active route

Schema

    status booleanrequired

    Status of API.

    result

    object

    required

    userTxType stringrequired

    Possible values: [approve, fund-movr, claim, dex-swap, sign]

    Type of user transaction.

    txTarget stringrequired

    Address to which transaction has to be sent.

    chainId stringrequired

    Possible values: [MAINNET_CHAIN_ID, OPTIMISM_CHAIN_ID, BSC_CHAIN_ID, XDAI_CHAIN_ID, POLYGON_CHAIN_ID, FANTOM_CHAIN_ID, ZKSYNC_ERA_CHAIN_ID, POLYGON_ZKEVM_CHAIN_ID, MANTLE_CHAIN_ID, BASE_CHAIN_ID, ARBITRUM_CHAIN_ID, AVAX_CHAIN_ID, LINEA_CHAIN_ID, ZORA_CHAIN_ID, AURORA_CHAIN_ID]

    Id of chain where transaction has to be sent.

    txData stringrequired

    Calldata for transaction.

    txType stringrequired

    Possible values: [eth_sendTransaction, eth_signMessage]

    Type of transaction.

    activeRouteId numberrequired

    Id of Active Route.

    value stringrequired

    Native token amount to be sent with transaction.

    userTxIndex numberrequired

    Index of transaction in Active Route. Index of the object in the userTxs array.

    totalUserTx numberrequired

    Total number of transactions in Active Route.

    approvalData

    object

    required

    minimumApprovalAmount stringrequired

    Minimum amount of approval needed.

    approvalTokenAddress stringrequired

    Address of token for which approval is required.

    allowanceTarget stringrequired

    Contract address that needs approval.

    owner stringrequired

    Address of owner.

Loading...