> ## 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.hasRole

> Generated B20 reference for hasRole(bytes32,address).

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

## Signature

```solidity theme={null}
function hasRole(bytes32 role, address account) external view returns (bool);
```

| Field               | Value                      |
| ------------------- | -------------------------- |
| Selector            | `0x91d14854`               |
| Canonical signature | `hasRole(bytes32,address)` |

## Description

Whether `account` is a member of `role`. User-defined roles are supported and have no
built-in effect on the token's own functions.
Param: role    Role to check.
Param: account Account to check.
Return: Whether `account` holds `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).hasRole(arg0, arg1);
```

## 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)
