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.
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.
The user's address.
Generate transaction data for cross-chain trade
The data associated with the transaction
Contract version to execute the trade
the estimated amount of gas needed for the transaction
the estimate gas error, returned from RPC
The value of the transaction in the native currency.