Docs

exactOutputSingle

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

Example

import { exactOutputSingle } from "thirdweb/extensions/uniswap";
const transaction = exactOutputSingle({
contract,
params: ...,
overrides: {
...
}
});
// Send the transaction
...

Parameters

Returns

A prepared transaction object.