Skip to main content

API — HCS‑10

This page summarizes the primary HCS‑10 SDK APIs. See the linked source files for complete method signatures and inline docs.

Node Client — HCS10Client

Key methods

  • createAccount(initialBalance?)
  • createInboundTopic(accountId, topicType, ttl?, feeConfigBuilder?)
  • createOutboundTopic(ttl?)
  • handleConnectionRequest(inboundTopicId, requestingAccountId, connectionRequestId)
  • waitForConnectionConfirmation(inboundTopicId, connectionRequestId, timeoutMs?)
  • sendMessage(connectionTopicId, data, memo?)
  • Profile helpers: storeHCS11Profile, createAgent, createMCPServer, etc.

Base Client — HCS10BaseClient

Highlights

  • getTopicTypeFromMemo, getOperatorFromMemo, getTopicIdFromMemo
  • Memo helpers: inbound/outbound/connection/registry
  • Mirror read helpers for messages and confirmations

Browser Client — HCS10BrowserClient

Highlights

  • createInboundTopic, createOutboundTopic
  • requestConnection, confirmConnection, sendMessage
  • Signer‑first transaction handling (freezeWithSigner, executeWithSigner)

ConnectionsManager

Highlights

  • Stream utilities: subscribe to inbound/outbound/connection topics
  • Message normalization and filtering
  • Callbacks for request/confirm/message events

Transactions (Builders)

Includes

  • Topic builders: buildHcs10CreateInboundTopicTx, buildHcs10CreateOutboundTopicTx, buildHcs10CreateConnectionTopicTx, buildHcs10CreateRegistryTopicTx
  • Connection messages: buildHcs10SubmitConnectionRequestTx, buildHcs10ConfirmConnectionTx, outbound audit records
  • Messaging: buildHcs10SendMessageTx
  • Registry: buildHcs10RegistryRegisterTx, buildHcs10RegistryDeleteTx, buildHcs10RegistryMigrateTx

Types and Errors