GET /trade/v1/{chainId}/swap/cross
Generate transaction data for single-chain trade via Unizen DEX Aggregator
Last updated
Generate transaction data for single-chain trade via Unizen DEX Aggregator
Last updated
The chain ID of the chain to quote on.
56
The transaction data for the cross-chain trade
The transactionData object obtained from the /quote API, parsed as a string.
The native currency value for this transaction, obtained from the /quote API response.
"29422186306758765852"
The user's address.
"0xF0Fbf42C54Ac40dA016003baD35E5AefaC6E1CE1"
Generate transaction data for cross-chain trade
The data associated with the transaction
Contract version to execute the trade
"V1"
the estimated amount of gas needed for the transaction
"11231133211313"
the estimate gas error, returned from RPC
"Execution reverted"
The value of the transaction in the native currency.
"0"