quoteExactOutputSingle

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

Example

import { sendTransaction } from "thirdweb";
import { quoteExactOutputSingle } from "thirdweb/extensions/uniswap";
const transaction = quoteExactOutputSingle({
contract,
tokenIn: ...,
tokenOut: ...,
fee: ...,
amountOut: ...,
sqrtPriceLimitX96: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function quoteExactOutputSingle(
| { asyncParams: () => Promise<QuoteExactOutputSingleParams> }
>,

Parameters

The options for the "quoteExactOutputSingle" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.