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
| Field | Type | Required | Description | Validation |
|---|---|---|---|---|
| p | String | Yes | Protocol identifier | Must be 'hcs-20', case insensitive |
| op | String | Yes | Operation type | Must be 'register', case insensitive |
| name | String | Yes | Name of the topic | Max 100 chars, non-empty |
| metadata | String | No | HIP-412 compliant metadata URL | Max 100 chars, valid URL |
| private | Boolean | Yes | Privacy setting | true/false |
| t_id | String | Yes | Topic ID to register | Must match Hedera account ID format |
| m | String | No | Additional memo | Max 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 topicfalse: 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
-
Search-ability
- Topics are easily indexable
- Enhanced discoverability
- Searchable registry
-
Standardization
- Uniform method for registration
- Consistent topic management
- HCS-20 standard compliance
-
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