Hashgraph Online Standards SDK
The Hashgraph Online Standards SDK provides a complete implementation of the Hashgraph Consensus Standards (HCS) protocols, giving developers all the tools needed to build applications on Hedera.
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, and edge runtimes
Getting Started
Installation
# Using npm
npm install @hashgraphonline/standards-sdk
# Using yarn
yarn add @hashgraphonline/standards-sdk
# Using pnpm
pnpm add @hashgraphonline/standards-sdk
Quick Example
Here's how to inscribe text data on Hedera using the SDK:
import { inscribe } from '@hashgraphonline/standards-sdk';
async function inscribeText() {
const result = await inscribe(
{
type: 'text',
content: 'Hello, Hedera!',
fileName: 'greeting.txt',
},
{
network: 'testnet',
accountId: '0.0.123456',
privateKey: 'your-private-key',
}
);
console.log(`Inscription successful on topic ${result.topicId}`);
console.log(`Transaction ID: ${result.transactionId}`);
}
inscribeText().catch(console.error);
Key Capabilities
Key Capabilities
Browse standards implemented in this SDK
Technical Benefits
- Type Safety - Full TypeScript support with comprehensive type definitions
- Modular Architecture - Import only the components you need
- Consistent Interfaces - Common patterns across all standards
- 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 Support
- Join our Telegram for community discussion
- Follow us on Twitter for updates
- View the source code on GitHub