Docs

quoteExactOutputSingle

Calls the "quoteExactOutputSingle" function on the contract.

Example

import { quoteExactOutputSingle } from "thirdweb/extensions/uniswap";
const transaction = quoteExactOutputSingle({
contract,
tokenIn: ...,
tokenOut: ...,
fee: ...,
amountOut: ...,
sqrtPriceLimitX96: ...,
});
// Send the transaction
...

Parameters

Returns

A prepared transaction object.