Comment on page
GET /trade/v1/{chainId}/quote/cross
Find all available quotes for cross-chain trade via Unizen DEX Aggregator
get
/trade/v1/{chainId}/quote/cross
Get the best quote for a cross chain trade.
Parameters
Path
chainId*
number
The chain ID of the chain to quote on.
Query
fromTokenAddress*
string
The address of the token being traded. If native, use address zero.
toTokenAddress*
string
The address of the token to receive in exchange. If native, use address zero.
amount*
string
Amount of tokens being traded
destinationChainId*
number
The chain ID of the destination network.
sender*
string
The address of the sender.
slippage
number
The maximum slippage percentage allowed.
deadline
number
The timestamp of the transaction deadline.
isExactOut
boolean
Whether it is an exact out trade.
Header
X-Api-Key
string
Api key
Responses
200: OK
The response is an array of objects, with each object representing one provider. Currently, we support two interoperable providers for cross-chain transactions: Stargate, Celer
Last modified 5mo ago