GET /trade/v1/{chainId}/swap/cross
Generate transaction data for single-chain trade via Unizen DEX Aggregator
Path parameters
chainIdnumber · enumRequiredExample:
The chain ID of the chain to quote on.
56Possible values: Header parameters
X-Api-KeystringOptional
Api key
Body
transactionDatastringRequired
The transactionData object obtained from the /quote API, parsed as a string.
nativeValuestringRequiredExample:
The native currency value for this transaction, obtained from the /quote API response.
29422186306758765852accountstringRequiredExample:
The user's address.
0xF0Fbf42C54Ac40dA016003baD35E5AefaC6E1CE1Responses
200
Generate transaction data for cross-chain trade
application/json
datastringRequired
The data associated with the transaction
contractVersionstringRequiredExample:
Contract version to execute the trade
V1estimateGasstringRequiredExample:
the estimated amount of gas needed for the transaction
11231133211313estimateGasErrorobjectRequiredExample:
the estimate gas error, returned from RPC
Execution revertednativeValuestringRequiredExample:
The value of the transaction in the native currency.
0post
/trade/v1/{chainId}/swap/cross200
Generate transaction data for cross-chain trade
Last updated