testnet
GitHub

Register Policy Template

registerPolicyTemplate(string calldata templateId)

Registers a new policy template into the PCL. Templates define the schema and logic for policies (e.g., volume limits, allowlists).

Parameters

Name Type Required Description
templateId string The unique identifier for the policy template.

Returns

Type: void

No return value. Emits PolicyTemplateRegistered on success.

Examples

Registering a Template

IPcl(PCL_PRECOMPILED_ADDRESS).registerPolicyTemplate("volume-limit-v1");
ESC
Type to search