quote
Retrieves a Universal Bridge quote for the provided sell intent. The quote will specify the expected destinationAmount
that will be received in exchange for the specified originAmount
, which is specified with the sellAmountWei
option.
This will return a quote that might look like:
The quote is an estimate for how much you would expect to receive for a specific sell. This quote is not guaranteed and you should use Sell.prepare
to get a finalized quote with transaction data ready for execution.
So why use quote
? The quote function is sometimes slightly faster than prepare
, and can be used before the user connects their wallet.
You can access this functions input and output types with Sell.quote.Options
and Sell.quote.Result
, respectively.