GET /trade/v1/{chainId}/swap/cross
Generate transaction data for single-chain trade via Unizen DEX Aggregator
Last updated
Was this helpful?
Generate transaction data for single-chain trade via Unizen DEX Aggregator
Last updated
Was this helpful?
The chain ID of the chain to quote on.
56
Possible values: Api key
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
POST /trade/v1/{chainId}/swap/cross HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 114
{
"transactionData": {},
"nativeValue": "29422186306758765852",
"account": "0xF0Fbf42C54Ac40dA016003baD35E5AefaC6E1CE1"
}
Generate transaction data for cross-chain trade
{
"data": {},
"contractVersion": "V1",
"estimateGas": "11231133211313",
"estimateGasError": "Execution reverted",
"nativeValue": "0"
}