GET /trade/v1/{chainId}/swap/single
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 where the swap will be conducted
Needed params, obtained from /quote/single endpoint
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 that conducts the trade.
The wallet address that will receive the funds.
tradeType obtained from the /quote API response
Generate transaction data for single-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.
Gas Price
The raw error returned from RPC or our smart contract