Skip to main content

Topic Registry

OverviewDirect link to Overview

The HCS Topic Registry introduces a standardized way to register Topic IDs on the Hedera Hashgraph and detail the protocol (HCS-20, etc). This registry is public and allows for the indexed search of registered topics that are both private and public (with and without submitKeys).

Version 0.0.5 of the desktop app has the UI to register a new topic id to the network.

Public Topic ID for Registry: 0.0.4362300

Register CommandDirect link to Register Command

JSON StructureDirect link to JSON Structure

{
"p": "hcs-20",
"op": "register",
"name": "YOUR_TOPIC_NAME",
"metadata": "OPTIONAL_METADATA (HIP-412 compliant)",
"private": BOOLEAN_VALUE,
"t_id": "TOPIC_ID_TO_REGISTER",
"m": "OPTIONAL_MEMO"
}

FieldsDirect link to Fields

FieldTypeRequiredDescriptionValidation
pStringYesProtocol identifierMust be 'hcs-20', case insensitive
opStringYesOperation typeMust be 'register', case insensitive
nameStringYesName of the topicMax 100 chars, non-empty
metadataStringNoHIP-412 compliant metadata URLMax 100 chars, valid URL
privateBooleanYesPrivacy settingtrue/false
t_idStringYesTopic ID to registerMust match Hedera account ID format
mStringNoAdditional memoMax 500 chars

Field Validation DetailsDirect link to Field Validation Details

Protocol Identifier (p)Direct link to Protocol Identifier (p)

  • Type: String
  • Required: Yes
  • Validation: Must be 'hcs-20' or future protocol numbers, case insensitive

Operation Type (op)Direct link to Operation Type (op)

  • Type: String
  • Required: Yes
  • Validation: Must be 'register', case insensitive

Name (name)Direct link to Name (name)

  • Type: String
  • Required: Yes
  • Maximum length: 100 characters
  • Must be non-empty

Metadata (metadata)Direct link to Metadata (metadata)

  • Type: String (URL)
  • Required: No
  • Maximum length: 100 characters
  • Should be HIP-412 compliant
  • Recommended format: ipfs://bafyreid745vrmonapq677deya5gbnw33zx7f4ijqmten4fmxy5oxnwte5q/metadata.json

Privacy Setting (private)Direct link to Privacy Setting (private)

  • Type: Boolean
  • Required: Yes
  • Values:
    • true: Private topic
    • false: Public topic

Topic ID (t_id)Direct link to Topic ID (t_id)

  • Type: String
  • Required: Yes
  • Format: Must match Hedera account ID format
  • Validation regex: ^(0|(?:[1-9]\d*))\.(0|(?:[1-9]\d*))\.(0|(?:[1-9]\d*))$

Memo (m)Direct link to Memo (m)

  • Type: String
  • Required: No
  • Maximum length: 500 characters
  • Purpose: Additional descriptions or notes

BenefitsDirect link to Benefits

  1. Search-ability

    • Topics are easily indexable
    • Enhanced discoverability
    • Searchable registry
  2. Standardization

    • Uniform method for registration
    • Consistent topic management
    • HCS-20 standard compliance
  3. Transparency

    • Clear topic management
    • Especially beneficial for public topics
    • Improved visibility

Usage NotesDirect link to Usage Notes

Public TopicsDirect link to Public Topics

  • Set private: false
  • Provide public topic_id
  • Accessible to all users

Private TopicsDirect link to Private Topics

  • Set private: true
  • Ensure proper access control configuration
  • Restricted access as needed