AppController_getSingleTxFromQuery
GET/v2/build-tx
AppController_getSingleTxFromQuery
Request
Query Parameters
Address of the sender.
Address of the recipient.
Path returned in the userTx with type "fund-movr"
Source ChainId
Destination ChainId
Address of the source token
Address of the destination token
Amount as Bignumber for the source token
Amount as Bignumber for the destination token
Token Address that is being sent to the bridge. In case of swap, the token that you swapped into has to be passed here.
Boolean variable that notifies us if refuel(dropping some native tokens on the destination chain) also has to be included in the transaction.
Override the default swap slippage sent by the quote in percentage, i.e 1% = 1 or 0.5% = 0.5.
Override the default bridge slippage sent by the quote in percentage, i.e 1% = 1 or 0.5% = 0.5. NOTE - Slippage is not present for all bridges.
Destination Payload
Destination Gas limit
BridgeInsuranceAmount
Fee Percentage - Percentage of fee to be cut from the input token. Supports only three decimal places and uptp 5 percent.
Fee Taker Address - Address that collects the fee.
Header Parameters
Responses
- 200
Get the tx details for the route.
- application/json
- Schema
- Example (from schema)
Schema
Status of API.
trueresult
object
required
Type of user transaction.
Possible values: [approve, fund-movr, claim, dex-swap, sign]
dex-swapAddress to which transaction has to be sent.
0x3e8cB4bd04d81498aB4b94a392c334F5328b237bId of chain where transaction has to be sent.
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, MODE_CHAIN_ID, ARBITRUM_CHAIN_ID, AVAX_CHAIN_ID, LINEA_CHAIN_ID, BLAST_CHAIN_ID, SCROLL_CHAIN_ID, ZORA_CHAIN_ID, AURORA_CHAIN_ID]
137Calldata for transaction.
0xasjajfbalkfajfalalglaglagbalgaType of transaction.
Possible values: [eth_sendTransaction, eth_signMessage]
eth_sendTransactionNative token amount to be sent with transaction.
10000000000000000Total number of transactions in Active Route.
2approvalData
object
required
Minimum amount of approval needed.
10000000000000000Address of token for which approval is required.
0x2791bca1f2de4661ed88a30c99a7a9449aa84174Contract address that needs approval.
0x2791bca1f2de4661ed88a30c99a7a9449aa84174Address of owner.
0x3e8cB4bd04d81498aB4b94a392c334F5328b237b{
"status": true,
"result": {
"userTxType": "dex-swap",
"txTarget": "0x3e8cB4bd04d81498aB4b94a392c334F5328b237b",
"chainId": 137,
"txData": "0xasjajfbalkfajfalalglaglagbalga",
"txType": "eth_sendTransaction",
"value": "10000000000000000",
"totalUserTx": 2,
"approvalData": {
"minimumApprovalAmount": "10000000000000000",
"approvalTokenAddress": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
"allowanceTarget": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
"owner": "0x3e8cB4bd04d81498aB4b94a392c334F5328b237b"
}
}
}