Docs

quoteExactOutput

Calls the "quoteExactOutput" function on the contract.

Example

import { quoteExactOutput } from "thirdweb/extensions/uniswap";
const transaction = quoteExactOutput({
contract,
path: ...,
amountOut: ...,
});
// Send the transaction
...

Parameters

Returns

A prepared transaction object.