exactOutput

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

Example

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