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
...
function exactOutputSingle(
| { asyncParams: () => Promise<ExactOutputSingleParams> }
>,

Parameters

The options for the "exactOutputSingle" function.

Type

| { asyncParams: () => Promise<ExactOutputSingleParams> }
>;

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.