@hsuite/hashgraph-types
Type definitions and interfaces for the HbarSuite Hedera Hashgraph integration.
Description
The @hsuite/hashgraph-types
package provides a comprehensive set of TypeScript type definitions, interfaces, models, and namespaces for interacting with the Hedera Hashgraph network. It serves as the foundational type system for the HbarSuite ecosystem, ensuring type safety and providing clear contracts for Hedera network operations.
Core Features
🏗️ Comprehensive Type System
Complete TypeScript definitions for all Hedera operations
Strongly typed interfaces for network interactions
Extensive model implementations with decorators
🌐 Transaction Management
Detailed transaction type definitions
Transaction identity and authentication structures
Status tracking and result handling
💰 Account & Token Operations
Account balance tracking
Token balance management (fungible and non-fungible)
Multi-token support
🔐 Identity & Security
Private key management
DID (Decentralized Identifier) support
Multi-signature capabilities
📡 Network Integration
Mirror node interaction types
Operator account definitions
Network configuration interfaces
🛠️ Utility & Commons
Shared utility types
Common constants and helpers
RESTful API interfaces
Installation
Usage
Basic Usage
Transaction Management
Account & Token Operations
Network Operations
Architecture
The library is organized into several key namespaces:
IHashgraph
: Root namespace for interfacesHashgraph
: Root namespace for model implementationsHashgraph.DID
: DID-related functionalityHashgraph.Restful
: RESTful API interactionsHashgraph.Commons
: Shared utilities and constantsHashgraph.Ledger
: Ledger operations
Each namespace provides a clean and intuitive API for its specific domain while maintaining strong type safety.
Documentation
API Documentation
To generate and view the detailed API documentation:
To include coverage information:
Type Documentation
All types and interfaces are extensively documented with JSDoc comments, providing:
Detailed descriptions
Usage examples
Parameter descriptions
Return type information
License
This package is part of the HbarSuite ecosystem and is covered by its license terms.
Built with ❤️ by the HbarSuite Team Copyright © 2024 HbarSuite. All rights reserved.
Last updated