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
...
function quoteExactOutput(
| { asyncParams: () => Promise<QuoteExactOutputParams> }
>,

Parameters

The options for the "quoteExactOutput" function.

Type

| { asyncParams: () => Promise<QuoteExactOutputParams> }
>;

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.