quoteExactOutput

Prepares a transaction to call the "quoteExactOutput" function on the contract.

Example

import { quoteExactOutput } from "thirdweb/extensions/uniswap";
const transaction = quoteExactOutput({
contract,
path: ...,
amountOut: ...,
overrides: {
...
}
});
// Send the transaction
...

Parameters

Returns

A prepared transaction object.