getRoleAdmin

Gets the admin of a role.

Example

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

Parameters

Returns

The address of the role's admin.