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

# IB20.hasRole

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

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

## Parameters

| Parameter | Description       |
| --------- | ----------------- |
| `role`    | Role to check.    |
| `account` | Account to check. |

## Returns

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(role, account);
```
