AppController_getSingleTx
POST/v2/build-tx
AppController_getSingleTx
Request
Header Parameters
- application/json
Body
required
route
object
required
Unique id for each route.
6a4c26b6-b008-431d-a37c-028e0b30482bContains only on single swap.
falseSending token amount.
100000000000000000000chainGasBalances
object
required
minimumGasBalances
object
required
Approximate receiving token amount.
100000000000000000000Array of bridges used in the route
Possible values: [hop, hopCctp, anyswap, anyswap-router-v4, anyswap-router-v6, polygon-bridge, arbitrum-bridge, hyphen, across, optimism-bridge, celer, refuel-bridge, stargate, connext, cctp, synapse, base-bridge, zora-bridge, zksync-native, symbiosis, gnosis-native-bridge, mantle-native-bridge, scroll-native-bridge, mode-native-bridge, super-bridge, stargate-v2]
[anyswap-router-v4]Total number of transactions for the route.
3Combined USD gas fees for all transactions in the route.
125.4Address of user receiving the amount.
0x3e8cB4bd04d81498aB4b94a392c334F5328b237bAddress of user making the transactions.
0x3e8cB4bd04d81498aB4b94a392c334F5328b237bArray of user transactions.
Receive Value
Estimate of total time in seconds, excluding the transaction time.
600Estimate of max time to exit from the chain in seconds.
600integratorFee
object
required
asset
object
Name of token.
USD CoinAddress of token.
0x2791bca1f2de4661ed88a30c99a7a9449aa84174URL for icon of token.
https://maticnetwork.github.io/polygon-token-assets/assets/usdc.svgDecimal used for token.
6Symbol of token.
USDCChain id of the token
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]
137URL for icon of token.
https://maticnetwork.github.io/polygon-token-assets/assets/usdc.svgUnique Id over all chains
DAIrefuel
object
required
gasFees
object
required
Approx Gas Limit of the transaction.
250000USD value of gas fees at current gas price.
125.4asset
object
required
Name of token.
USD CoinAddress of token.
0x2791bca1f2de4661ed88a30c99a7a9449aa84174URL for icon of token.
https://maticnetwork.github.io/polygon-token-assets/assets/usdc.svgDecimal used for token.
6Symbol of token.
USDCChain id of the token
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]
137URL for icon of token.
https://maticnetwork.github.io/polygon-token-assets/assets/usdc.svgUnique Id over all chains
DAIEstimated Amount of gas token will be used
fromAsset
object
required
Name of token.
USD CoinAddress of token.
0x2791bca1f2de4661ed88a30c99a7a9449aa84174URL for icon of token.
https://maticnetwork.github.io/polygon-token-assets/assets/usdc.svgDecimal used for token.
6Symbol of token.
USDCChain id of the token
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]
137URL for icon of token.
https://maticnetwork.github.io/polygon-token-assets/assets/usdc.svgUnique Id over all chains
DAItoAsset
object
required
Name of token.
USD CoinAddress of token.
0x2791bca1f2de4661ed88a30c99a7a9449aa84174URL for icon of token.
https://maticnetwork.github.io/polygon-token-assets/assets/usdc.svgDecimal used for token.
6Symbol of token.
USDCChain id of the token
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]
137URL for icon of token.
https://maticnetwork.github.io/polygon-token-assets/assets/usdc.svgUnique Id over all chains
DAIdestinationCallData
object
required
bridgeInsuranceData
object
required
Amount of token to be used in insurance.
Responses
- 200
- 201
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"
}
}
}