Skip to main content

Hashgraph Online Standards SDK

The Hashgraph Online Standards SDK provides complete implementations of the Hiero Consensus Specifications (HCS) protocols, giving developers all the tools needed to build applications on Hedera.

Available in TypeScript, Go, and Python.

Canonical SDK docs URL: https://hol.org/docs/libraries/standards-sdk/

LanguagePackageSourceDocumentation
TypeScript@hol-org/standards-sdkhashgraph-online/standards-sdkhttps://hol.org/docs/libraries/standards-sdk/
Gogithub.com/hashgraph-online/standards-sdk-gohashgraph-online/standards-sdk-go/docs/libraries/go-sdk/overview
Pythonstandards-sdk-pyhashgraph-online/standards-sdk-py/docs/libraries/python-sdk/overview

What This SDK DoesDirect link to What This SDK Does

  • Implements HCS Protocols - Provides full implementations of standards at Hashgraph Online
  • Simplifies Complex Interactions - Handles protocol details through clean interfaces and developer-friendly APIs
  • Enables Cross-Platform Development - Works across Node.js, browsers, edge runtimes (TypeScript) and server-side Go applications

Getting StartedDirect link to Getting Started

InstallationDirect link to Installation

Installation

TypeScript

1# Using npm
2npm install @hashgraphonline/standards-sdk
3
4# Using yarn
5yarn add @hashgraphonline/standards-sdk
6
7# Using pnpm
8pnpm add @hashgraphonline/standards-sdk

Quick ExampleDirect link to Quick Example

Quick Example

TypeScript

1import { inscribe } from '@hashgraphonline/standards-sdk';
2
3async function inscribeText() {
4const result = await inscribe(
5 {
6 type: 'text',
7 content: 'Hello, Hedera!',
8 fileName: 'greeting.txt',
9 },
10 {
11 network: 'testnet',
12 accountId: '0.0.123456',
13 privateKey: 'your-private-key',
14 }
15);
16
17console.log(`Inscription successful on topic ${result.topicId}`);
18console.log(`Transaction ID: ${result.transactionId}`);
19}
20
21inscribeText().catch(console.error);

Key CapabilitiesDirect link to Key Capabilities

  • Registry Broker Client – typed access to discovery, chat, registration, metrics, and UAID tooling powered by the Registry Broker service.

Language-Specific DocsDirect link to Language-Specific Docs

  • TypeScript: Navigate the per-standard pages in this section — code snippets include both TypeScript and Go where available.
  • Go: See the Go SDK section for Go-specific overview, packages, and environment setup.
  • Python: See the Python SDK section for Python-specific setup and parity workflows.

Technical BenefitsDirect link to Technical Benefits

  • Type Safety - Full TypeScript support with comprehensive type definitions; strongly typed Go structs
  • Modular Architecture - Import only the components you need (pkg/* in Go, tree-shakeable modules in TypeScript)
  • Consistent Interfaces - Common patterns across all standards in both languages
  • Developer Utilities - Helper functions for common operations
  • Clean Abstractions - Implementation details hidden behind intuitive APIs
  • Custom Mirror Node Support - Integration with third-party mirror node providers

Community and SupportDirect link to Community and Support