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,
});

Parameters

Returns

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