Retrieves the number of members of a specific role.
import { getRoleMemberCount } from "thirdweb/extensions/permissions"; const result = await getRoleMemberCount({ contract, role: "admin",});
function getRoleMemberCount( options: BaseTransactionOptions<GetRoleMemberCountParams>,): Promise<bigint>;
The options for retrieving role member count.
let options: BaseTransactionOptions<GetRoleMemberCountParams>;
let returnType: Promise<bigint>;
A promise that resolves to the number of members of the role.