getRoleMemberCount

Retrieves the number of members of a specific role.

Example

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

Parameters

Returns

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