createAuditTopic
functionPolicy versioning (HCS-2)Create an immutable HCS audit topic (no admin key, so its config can never change).
signature
createAuditTopic(client: Client, memo?: string): Promise<string>Parameters
NameTypeDescription
clientreqClientHedera operator client.memo= 'curb-audit'stringTopic memo.Returns
Promise<string>The new topic id, e.g. `0.0.x`.
Example
example
const auditTopicId = await createAuditTopic(client);