π@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-typesBasic 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