Skip to main content

Signature

Description

Returns whether policyId is a built-in sentinel or a previously-assigned custom ID. Never reverts. Param: policyId Policy to query. Return: Whether the policy exists.

Access control

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

Policy interaction

This is part of the singleton PolicyRegistry surface used by B20 policy scopes.
Consumers that store a composite policy ID in a B20 policy slot MUST call policyExists(policyId) before storing it. A well-formed but never-created INTERSECT ID returns true for every account, behaving like ALWAYS_ALLOW.

Example