quoteExactOutput

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

Example

import { sendTransaction } from "thirdweb";
import { quoteExactOutput } from "thirdweb/extensions/uniswap";
const transaction = quoteExactOutput({
contract,
path: ...,
amountOut: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
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.