getAllRoleMembers

Retrieves all members of a specific role.

Example

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

Parameters

The options for retrieving role members.

Type

Returns

let returnType: Promise<Array<string>>;

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