getRoleMemberCount

Retrieves the number of members of a specific role.

Example

import { getRoleMemberCount } from "thirdweb/extensions/permissions";
const result = await getRoleMemberCount({
contract,
role: "admin",
});
function getRoleMemberCount(
): Promise<bigint>;

Parameters

The options for retrieving role member count.

Type

Returns

let returnType: Promise<bigint>;

A promise that resolves to the number of members of the role.