triangle-exclamation
NOTE: this is still a draft, so it's subject to changes. This alert will be removed as soon as final version will be available

πŸ“@hsuite/hashgraph-types - Hedera Hashgraph Type Definitions

🌐 Comprehensive TypeScript type system for Hedera Hashgraph network integration with complete SDK support

Enterprise-grade type definitions and validation library providing robust interfaces, models, and runtime validation for all Hashgraph operations including transactions, accounts, tokens, DID management, and RESTful API interactions.


πŸ“š Table of Contents


✨ Quick Start

Installation

npm install @hsuite/hashgraph-types

Basic Setup

NestJS Integration


πŸ—οΈ Architecture

Dual Namespace System

πŸ”§ IHashgraph Namespace (Interfaces)

  • Core Types - Transaction details, identity, and key management

  • Account Operations - Balance tracking and account management

  • Token Operations - Fungible and non-fungible token interfaces

  • DID Operations - W3C compliant decentralized identifiers

  • RESTful APIs - Complete Hedera REST API interface definitions

  • Ledger Operations - HCS, HTS, and account operations

πŸ›οΈ Hashgraph Namespace (Models)

  • Runtime Validation - Concrete classes with built-in validation

  • Swagger Integration - Complete API documentation decorators

  • Cryptographic Support - Ed25519, ECDSA, and RSA key management

  • Network Integration - Mirror node and operator implementations

Core Domains

πŸ’° Account & Token Management

  • Account Operations - Create, update, delete, transfer

  • Balance Tracking - HBAR and token balance management

  • Token Operations - HTS fungible and non-fungible tokens

  • Multi-signature - Threshold key management

πŸ” Identity & Security

  • DID Operations - W3C compliant identity management

  • Verifiable Credentials - Complete VC lifecycle support

  • Key Management - Multi-algorithm cryptographic support

  • Signature Validation - Transaction authentication

πŸ“‘ Network Integration

  • Mirror Nodes - Historical data access and queries

  • RESTful APIs - Complete Hedera service integration

  • Consensus Service - HCS topic management

  • Network Monitoring - Status and performance tracking

Module Structure


πŸ”§ API Reference

Core Interface Types

IHashgraph.IOperator

  • Purpose: Hedera network operator account configuration

  • Properties: accountId, privateKey, publicKey

  • Usage: Network operations and transaction submission

IHashgraph.ITransactionDetails

  • Purpose: Comprehensive transaction metadata

  • Properties: transactionId, status, consensusTimestamp, result

  • Usage: Transaction tracking and status monitoring

IHashgraph.IAccountBalance

  • Purpose: Account balance information

  • Properties: hbarBalance, tokens

  • Usage: Balance queries and tracking

DID Operations

IHashgraph.IDID.IDocument

  • Purpose: W3C compliant DID document structure

  • Properties: id, verificationMethod, authentication

  • Usage: Decentralized identity management

RESTful API Types

IHashgraph.IRestful.IAccounts

  • Purpose: Account REST API interfaces

  • Operations: Info, balance, transactions

  • Usage: Account data retrieval

IHashgraph.IRestful.IHTS

  • Purpose: Token Service REST API interfaces

  • Operations: Token info, balances, operations

  • Usage: Token data and operations


πŸ“– Guides

Transaction Management Guide

Complete guide to Hedera transaction lifecycle and management with status monitoring, transaction validation, and offline signing workflows. Covers transaction details creation, identity verification, and comprehensive error handling for enterprise blockchain operations.

Account Operations Guide

Account creation, management, and balance operations including HBAR transfers, multi-signature setups, and account lifecycle management. Features complete account state tracking, token associations, and operator configuration for Hedera network interactions.

Token Operations Guide

HTS fungible and non-fungible token operations with comprehensive token lifecycle management, supply controls, and custom fee configurations. Includes token creation, minting, burning, and transfer operations with complete validation and security features.

DID Implementation Guide

Decentralized identifier operations and W3C compliance with complete DID document management, verifiable credentials support, and cryptographic verification. Features complete identity lifecycle management with Ed25519 and ECDSA key support.


🎯 Examples

Transaction Management

Account & Token Operations

DID Operations

Network Operations

Ledger Operations


πŸ”— Integration

Required Dependencies

Module Integration

Documentation Generation

Integration with HSuite Ecosystem


🌐 Enterprise Hashgraph Integration: Comprehensive TypeScript definitions with complete Hedera SDK support and W3C DID compliance.

πŸ’° Complete Token & Account Support: Full HTS and account operations with multi-signature capabilities and balance tracking.

πŸ” Advanced Identity Management: DID operations, verifiable credentials, and enterprise-grade cryptographic key management.


Built with ❀️ by the HSuite Team Copyright © 2025 HSuite. All rights reserved.

Last updated