getRoleAdmin

Gets the admin of a role.

Example

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

Parameters

The options for getting the role's admin.

Type

Returns

let returnType: Promise<string>;

The address of the role's admin.