---
title: "GET /v2/route/build-next-tx"
method: GET
path: "/v2/route/build-next-tx"
tags: ["Routes"]
---

# GET /v2/route/build-next-tx

`GET /v2/route/build-next-tx`

## Query parameters

- `activeRouteId` string, required

## Headers

- `API-KEY` string

## Response `200`

Get next tx details of an active route

- NextTxOutputDTO
  - `status` boolean, required — Status of API.
  - `result` NextTxResponse, required
    - `userTxType` 'approve' | 'fund-movr' | 'claim' | 'dex-swap' | 'sign', required — Type of user transaction.
    - `txTarget` string, required — Address to which transaction has to be sent.
    - `chainId` 'ETHEREUM' | 'OPTIMISM' | 'BSC' | 'XDAI' | 'POLYGON' | 'FANTOM' | 'ARBITRUM' | 'AVALANCHE', required — Id of chain where transaction has to be sent.
    - `txData` string, required — Calldata for transaction.
    - `txType` 'eth_sendTransaction' | 'eth_signMessage', required — Type of transaction.
    - `activeRouteId` number, required — Id of Active Route.
    - `value` string, required — Native token amount to be sent with transaction.
    - `userTxIndex` number, required — Index of transaction in Active Route. Index of the object in the userTxs array.
    - `totalUserTx` number, required — Total number of transactions in Active Route.
    - `approvalData` ApprovalData, required
      - `minimumApprovalAmount` string, required — Minimum amount of approval needed.
      - `approvalTokenAddress` string, required — Address of token for which approval is required.
      - `allowanceTarget` string, required — Contract address that needs approval.
      - `owner` string, required — Address of owner.

---

[API](https://skmtc.net/swaprhq/apis/movr-aggregator-api.md) · [All operations](https://skmtc.net/swaprhq/apis/movr-aggregator-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/swaprhq/movr-aggregator-api/revisions/8b1957cc0e8f/schema)
