Skip to main content

Hive TX

The most lightweight and complete TypeScript SDK for the Hive blockchain. Create, sign, and broadcast transactions with full type safety and cryptographic utilities.

Why Hive TX?

Built from the ground up in TypeScript with developer experience in mind

Lightweight

Only ~29KB minified and gzipped, including all dependencies. Perfect for web and Node.js environments.

Type-Safe

Full TypeScript support with comprehensive type definitions for all operations and API calls.

Secure

Built-in cryptographic utilities for key management, signing, and memo encryption using industry-standard libraries.

Reliable

Automatic failover and retry mechanisms ensure your transactions get through even when nodes are down.

Complete

Support for all Hive operations including transfers, voting, posting, and custom JSON operations.

Multi-Signature

Native support for multi-signature transactions with flexible signing workflows.

Quick start

Get up and running with Hive TX in minutes

1

Install the package

Install Hive TX using your preferred package manager:
npm install hive-tx
Requires Node.js 20 or higher
2

Import and create a transaction

Import the required classes and create your first transaction:
import { Transaction, PrivateKey } from 'hive-tx'

const tx = new Transaction()
await tx.addOperation('vote', {
  voter: 'your-username',
  author: 'post-author',
  permlink: 'post-permlink',
  weight: 10000 // 100%
})
3

Sign and broadcast

Sign the transaction with your private key and broadcast it to the network:
const key = PrivateKey.from('your-private-posting-key')
tx.sign(key)
const result = await tx.broadcast()
console.log('Transaction ID:', result.tx_id)
{
  "tx_id": "abc123...",
  "status": "unknown"
}
4

Explore more

Check out the guides to learn about transfers, key management, API calls, and advanced features like memo encryption and multi-signature transactions.View all guides →

Explore by topic

Jump into detailed guides and API documentation

Transactions

Learn how to create, sign, and broadcast transactions on the Hive blockchain

Key Management

Generate, derive, and manage private keys securely

Operations

Explore all available Hive operations with full type definitions

API Calls

Make RPC and REST API calls with automatic failover and retry

Memo Encryption

Encrypt and decrypt memo messages for private transfers

Multi-Signature

Create and sign transactions with multiple keys

Ready to build on Hive?

Start creating transactions, managing keys, and interacting with the Hive blockchain using the most lightweight and complete TypeScript SDK.

Build docs developers (and LLMs) love