1. Schema Registry
Read Method: getSchema The getSchema method returns an existing schemaʼs raw data by schema UID.
Parameters:
uid :The schema UID (bytes32).
Returns
SchemaRecord- A struct with:uid:The schema UID.revocable:Whether the schema allows revocations explicitly.schema:Custom specification of the schema.
Write Method: register The register method creates a new schema.
Parameters
schema:The schema string.revocable:Whether the schema allows revocations explicitly.
Returns
bytes32:The UID of the created schema. (emits a Registered event).
Notes
Ensure the schema not exists in the registry.
Last updated
Was this helpful?