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