Transactions — HCS‑6
Note
- These builders are for direct transaction construction (e.g., with the Standards Agent Kit or custom pipelines).
- For most applications, prefer the higher‑level client (Node/Go) or browser client (wallet).
Sources
HCS‑6 uses a non‑indexed registry memo (hcs-6:1:<ttl>) and defines two builders for creating the registry and registering entries.
Create Registry — buildHcs6CreateRegistryTxDirect link to Create Registry — buildHcs6CreateRegistryTx
- TypeScript
- Go
- Python
import { buildHcs6CreateRegistryTx } from '@hashgraphonline/standards-sdk';
const tx = buildHcs6CreateRegistryTx({ ttl: 3600, adminKey: true, submitKey: true });
// Node
const receipt = await (await tx.execute(client)).getReceipt(client);
Notes
- Defaults memo to
hcs-6:1:<ttl>unlessmemoOverrideis provided. adminKey/submitKeyaccept boolean (use operator), raw string, or Key.
import "github.com/hashgraph-online/standards-sdk-go/pkg/hcs6"
tx := hcs6.BuildCreateRegistryTx(hcs6.CreateRegistryTxParams{
TTL: 3600,
AdminKey: operatorPublicKey, // hedera.Key
SubmitKey: operatorPublicKey,
})
response, err := tx.Execute(hederaClient)
receipt, err := response.GetReceipt(hederaClient)
Notes
- Memo is automatically set to
hcs-6:1:<ttl>. - Pass
AdminKey/SubmitKeyashedera.Keyvalues.
tx = hcs6.build_create_registry_tx(ttl=3600, admin_key=operatorPublicKey,
Register Entry — buildHcs6RegisterEntryTxDirect link to Register Entry — buildHcs6RegisterEntryTx
- TypeScript
- Go
- Python
import { buildHcs6RegisterEntryTx } from '@hashgraphonline/standards-sdk';
const tx = buildHcs6RegisterEntryTx({
registryTopicId: '0.0.111',
targetTopicId: '0.0.222',
memo: 'register my dynamic inscription',
analyticsMemo: 'hcs-6 register',
});
// Node
await (await tx.execute(client)).getReceipt(client);
tx, err := hcs6.BuildRegisterEntryTx(hcs6.RegisterEntryTxParams{
RegistryTopicID: "0.0.111",
TargetTopicID: "0.0.222",
Memo: "register my dynamic inscription",
AnalyticsMemo: "hcs-6 register",
})
if err != nil {
log.Fatal(err)
}
response, err := tx.Execute(hederaClient)
receipt, err := response.GetReceipt(hederaClient)
tx = hcs6.build_register_entry_tx(registry_topic_id="0.0.111", target_topic_id="0.0.222", memo="register my dynamic inscription", analytics_memo="hcs-6 register")
response = tx.execute(hederaClient)
receipt = response.get_receipt(hederaClient)
Payload
{ "p": "hcs-6", "op": 0, "t_id": "0.0.222", "m": "register my dynamic inscription" }