maxUnits

Calls the "maxUnits" function on the contract.

Example

import { maxUnits } from "thirdweb/extensions/farcaster";
const result = await maxUnits({
contract,
});
function maxUnits(options: BaseTransactionOptions): Promise<bigint>;

Parameters

The options for the maxUnits function.

Type

let options: { contract: ThirdwebContract<abi> } & T;

Returns

let returnType: Promise<bigint>;

The parsed result of the function call.