Docs

getAllRoleMembers

Retrieves all members of a specific role.

Example

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

Parameters

Returns

A promise that resolves to an array of strings representing the role members.