hasAnyRole

Calls the "hasAnyRole" function on the contract.

Example

import { hasAnyRole } from "thirdweb/extensions/modules";
const result = await hasAnyRole({
contract,
user: ...,
roles: ...,
});
function hasAnyRole(
): Promise<boolean>;

Parameters

The options for the hasAnyRole function.

Type

Returns

let returnType: Promise<boolean>;

The parsed result of the function call.