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

> Generated B20 reference for policyId(bytes32).

## Signature

```solidity theme={null}
function policyId(bytes32 policyScope) external view returns (uint64);
```

| Field               | Value               |
| ------------------- | ------------------- |
| Selector            | `0xdb3de624`        |
| Canonical signature | `policyId(bytes32)` |

## Description

The current policy ID configured for `policyScope`. Returns `0` (always-allow built-in) for any slot that has never been assigned.

## Parameters

| Parameter     | Description        |
| ------------- | ------------------ |
| `policyScope` | Policy slot scope. |

## Returns

Configured policy ID.

## Reverts

* `UnsupportedPolicyType` when `policyScope` is not recognized by this token.

## Access control

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

## Policy interaction

Reads or writes a token policy-scope pointer into the PolicyRegistry.

## Example

```solidity theme={null}
uint64 id = IB20(token).policyId(B20Constants.MINT_RECEIVER_POLICY);
```
