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 });