getRoleMember

Retrieves a specific member of a specific role.

Example

import { getRoleMember } from "thirdweb/extensions/permissions";
const address = await getRoleMember({
contract,
role: "admin",
index: 0n,
});
function getRoleMember(
): Promise<string>;

Parameters

The options for retrieving the role member.

Type

Returns

let returnType: Promise<string>;

A promise that resolves to the address of the role member.