Skip to main content

Hashgraph Online Standards SDK

A comprehensive implementation toolkit for Hashgraph Consensus Standards (HCS) developed by Hashgraph Online. This SDK provides developers with a unified interface to implement and interact with HCS protocols for distributed applications.

Purpose​

The Standards SDK encapsulates implementation details of HCS protocols, enabling developers to build applications that leverage these standards without dealing with low-level protocol complexity.

Standards Implementation​

ProtocolCapabilityImplementation
HCS-1File Data ManagementBase protocol for encoding, chunking, and storing file data on HCS
HCS-3RecursionReferenced resources with on-graph loading and verification
HCS-7Dynamic AssetsProgrammable on-graph assets with state management
HCS-10Agent CommunicationSecure peer-to-peer messaging for AI agents
HCS-11Identity ProfilesDecentralized identity management and verification

Technical Features​

  • Protocol Abstraction — Implementation details hidden behind clean interfaces
  • TypeScript Support — Full type definitions for all protocol interactions
  • Cross-Environment — Works in Node.js, browsers, and edge runtimes
  • Developer Tooling — Utilities for common operations across standards
  • Modular Architecture — Use only the standards you need

Installation​

npm install @hashgraphonline/standards-sdk
yarn add @hashgraphonline/standards-sdk
pnpm add @hashgraphonline/standards-sdk

Implementation Example​

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!');
console.log('Topic ID:', result.topicId);
console.log('Transaction ID:', result.transactionId);
}

inscribeText().catch(console.error);

Documentation​

ProtocolDocumentation
HCS-3: RecursionTechnical Reference
HCS-7: Dynamic AssetsTechnical Reference
HCS-10: Agent CommunicationTechnical Reference
HCS-11: Identity ManagementTechnical Reference
Inscription ToolsTechnical Reference

Resources​