typescript-sdk

Home > @3rdweb/sdk > ModuleWithRoles > getAllRoleMembers

ModuleWithRoles.getAllRoleMembers() method

Call this to get get a list of addresses for all supported roles on the module.

Signature:

getAllRoleMembers(): Promise<Partial<Record<Role, string[]>>>;

Returns:

Promise<Partial<Record<Role, string[]>>>

A record of Roles to lists of addresses that are members of the given role.

Exceptions

If the module does not support roles this will throw an InvariantError.