exactOutput

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

Example

import { sendTransaction } from "thirdweb";
import { exactOutput } from "thirdweb/extensions/uniswap";
const transaction = exactOutput({
contract,
params: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function exactOutput(
| { asyncParams: () => Promise<ExactOutputParams> }
>,

Parameters

The options for the "exactOutput" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.