Signature
Description
The current policy ID configured forpolicyScope. Returns 0 (always-allow built-in) for any slot that has never been assigned.
Parameters
Returns
Configured policy ID.Reverts
UnsupportedPolicyTypewhenpolicyScopeis 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 returneduint64 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.