isAdmin

Calls the "isAdmin" function on the contract.

Example

import { isAdmin } from "thirdweb/extensions/erc4337";
const result = await isAdmin({
contract,
signer: ...,
});
function isAdmin(
options: BaseTransactionOptions<IsAdminParams>,
): Promise<boolean>;

Parameters

The options for the isAdmin function.

Type

let options: BaseTransactionOptions<IsAdminParams>;

Returns

let returnType: Promise<boolean>;

The parsed result of the function call.