> ## Documentation Index
> Fetch the complete documentation index at: https://base-a060aa97-docs-add-b20-spec.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# IB20.getRoleAdmin

> Generated B20 reference for getRoleAdmin(bytes32).

[Related concept](/base-chain/specs/upgrades/beryl/b20/specification/concepts/roles-and-access-control)

## Signature

```solidity theme={null}
function getRoleAdmin(bytes32 role) external view returns (bytes32);
```

| Field               | Value                   |
| ------------------- | ----------------------- |
| Selector            | `0x248a9ca3`            |
| Canonical signature | `getRoleAdmin(bytes32)` |

## Description

The role required to grant or revoke `role`. Defaults to `DEFAULT_ADMIN_ROLE` if not
explicitly set via `setRoleAdmin`.
Param: role Role whose admin is being queried.
Return: Admin role.

## Access control

Read-only or ERC-20-standard access rules unless the NatSpec states otherwise.

## Policy interaction

No direct policy interaction.

## Example

```solidity theme={null}
IB20(target).getRoleAdmin(arg0);
```

## Related

* [IB20 reference](/base-chain/specs/upgrades/beryl/b20/specification/reference/interfaces/IB20)
* [Constants & addresses](/base-chain/specs/upgrades/beryl/b20/specification/reference/constants-and-addresses)
