quoteExactOutputSingle

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

Example

import { quoteExactOutputSingle } from "thirdweb/extensions/uniswap";
const transaction = quoteExactOutputSingle({
contract,
tokenIn: ...,
tokenOut: ...,
fee: ...,
amountOut: ...,
sqrtPriceLimitX96: ...,
overrides: {
...
}
});
// Send the transaction
...
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.