@hsuite/smartnode-sdk
A powerful SDK for interacting with SmartNode services and Hedera Hashgraph network functionality. This SDK provides a comprehensive set of tools and interfaces for managing SmartNode operations, validator interactions, and Hedera Hashgraph services.
Features
SmartNode Operations: Core functionality for interacting with SmartNode services
Validator Management: Tools for managing and interacting with validators
Hedera Hashgraph Integration:
Hashgraph Consensus Service (HCS) operations
Account management
Transaction handling
Token Service (HTS) operations
Installation
Module Integration
The SDK is designed to be integrated into NestJS applications using the module system. It provides flexible configuration options through asynchronous initialization.
Basic Usage
Services
SmartNodeSdkService
The main service that provides access to all SDK functionality. It initializes and manages the following sub-services:
smartNodeRestful
: Core SmartNode operationsvalidatorsRestful
: Validator management operationshcsHashgraphRestful
: Hedera Consensus Service operationsaccountsHashgraphRestful
: Hedera account managementtransactionsHashgraphRestful
: Transaction handlinghtsHashgraphRestful
: Hedera Token Service operations
REST Services
Base Restful Service
All REST services extend from a base implementation that provides common functionality for HTTP requests and error handling.
Available Services
SmartNode Restful
Core SmartNode operations and management
Validators Restful
Validator management and interaction
HCS (Hashgraph Consensus Service) Restful
Consensus service operations
Message submission and retrieval
Accounts Hashgraph Restful
Account creation and management
Balance queries
Account updates
Transactions Hashgraph Restful
Transaction submission
Transaction status queries
Transaction history
HTS (Hedera Token Service) Restful
Token creation and management
Token transfers
Token information queries
Configuration
The SDK supports flexible configuration through the SmartNodeSdkModuleAsyncOptions
interface:
Configuration Options
The SDK can be configured using three different patterns:
Using an existing factory
Creating a new factory class
Using a factory function
Dependencies
@nestjs/common
@hsuite/client
Version
Current Version: 2.0.0
License
[License information not found in source code]
For more detailed information about specific services and their usage, please refer to the individual service documentation in the source code.
Built with ❤️ by the HbarSuite Team Copyright © 2024 HbarSuite. All rights reserved.
Last updated