Skip to main content

Signature

Description

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

Parameters

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. The returned uint64 is an opaque policy ID that may refer to a simple policy (ALLOWLIST or BLOCKLIST) or, as of Cobalt, a composite policy (UNION or INTERSECT). B20 passes the ID to isAuthorized without inspecting its type.

Example