Package manager installation
Install hive-tx using your preferred package manager:Requirements
hive-tx requires Node.js 20 or higher. Make sure your environment meets this requirement before installation.
Import patterns
The library supports both ES Modules (ESM) and CommonJS (CJS) import patterns. Your application will automatically pick the right build for your environment.ES Modules (ESM)
CommonJS (CJS)
Direct build imports
You can also import either build directly:Browser usage
For browser environments, you can use the UMD build via CDN:The browser build is minified and gzipped to approximately 29KB, including all dependencies.
Verify installation
After installation, verify that hive-tx is working correctly:What’s included
The hive-tx package includes:- Transaction - Create, sign, and broadcast transactions
- PrivateKey - Key generation and management
- PublicKey - Public key operations and verification
- Signature - Signature handling and verification
- Memo - Encrypted memo support
- callRPC - Make JSON-RPC API calls with automatic failover
- callREST - Make REST API calls with full typing
- callWithQuorum - Cross-check results across multiple nodes
- config - Configure nodes, timeout, and retry settings
- utils - Utility functions for common operations
Next steps
Quickstart
Get started with your first transaction in minutes
Configuration
Configure API nodes, timeout, and retry settings