exactOutputSingle

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

Example

import { sendTransaction } from "thirdweb";
import { exactOutputSingle } from "thirdweb/extensions/uniswap";
const transaction = exactOutputSingle({
contract,
params: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
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.