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/
Multi-Language SDK LinksDirect link to Multi-Language SDK Links
| Language | Package | Source | Documentation |
|---|---|---|---|
| TypeScript | @hol-org/standards-sdk | hashgraph-online/standards-sdk | https://hol.org/docs/libraries/standards-sdk/ |
| Go | github.com/hashgraph-online/standards-sdk-go | hashgraph-online/standards-sdk-go | /docs/libraries/go-sdk/overview |
| Python | standards-sdk-py | hashgraph-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 npm2npm install @hashgraphonline/standards-sdk34# Using yarn5yarn add @hashgraphonline/standards-sdk67# Using pnpm8pnpm add @hashgraphonline/standards-sdk
Quick ExampleDirect link to Quick Example
Quick Example
TypeScript
1import { inscribe } from '@hashgraphonline/standards-sdk';23async 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);1617console.log(`Inscription successful on topic ${result.topicId}`);18console.log(`Transaction ID: ${result.transactionId}`);19}2021inscribeText().catch(console.error);
Key CapabilitiesDirect link to Key Capabilities
Key Capabilities
Browse standards implemented in this SDK
- 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
- Join our Telegram for community discussion
- Follow us on Twitter for updates
- TypeScript source code on GitHub
- Go source code on GitHub
- Python source code on GitHub