Skip to main content

Build on Hive with WAX

A high-performance SDK that provides Hive blockchain protocol features to Python and TypeScript applications. Create, sign, and broadcast transactions with ease.

import createHiveChain from’@hiveio/wax’
// Initialize WAX
const chain = await createHiveChain()
// Build transaction
chain.pushOperation(op)

Quick Start

Get started with WAX in your preferred language

1

Install the package

Choose your platform and install WAX using your package manager.
npm
npm install @hiveio/wax
yarn
yarn add @hiveio/wax
pnpm
pnpm add @hiveio/wax
2

Initialize WAX

Create a WAX instance for offline operations or connect to the Hive network.
import { createWaxFoundation, createHiveChain } from '@hiveio/wax';

// For offline operations (transaction building, signing)
const wax = await createWaxFoundation();

// For online operations (API calls, broadcasting)
const chain = await createHiveChain();
3

Build and sign a transaction

Create a transaction, add operations, and sign it with your preferred signing provider.
// Create a transaction
const tx = await wax.createTransaction();

// Add operations
tx.pushOperation({
  vote: {
    voter: "alice",
    author: "bob",
    permlink: "example-post",
    weight: 10000
  }
});

// Sign and broadcast
await tx.sign(wallet, publicKey);
await chain.broadcast(tx.transaction);

Explore by Topic

Jump into the documentation for your use case

Python SDK

Build Hive applications with Python using Cython bindings

TypeScript SDK

Integrate Hive into JavaScript applications with WebAssembly

Core Concepts

Understand transactions, operations, and signing

API Reference

Detailed API documentation for both languages

Guides

Step-by-step guides for common tasks

Extensions

Signing providers and API extensions

Key Features

What makes WAX powerful for Hive development

Dual-Language Support

Native SDKs for Python (Cython) and TypeScript (WebAssembly) from the same C++ core

Flexible Signing

Pluggable signing providers including Beekeeper, Keychain, MetaMask, and PeakVault

Protocol Buffers

Operations based on Protocol Buffers from hived C++ source ensure compatibility

Framework Support

Works with Next.js, React, Vue, Nuxt, Node.js, and more with automatic environment detection

Ready to Build on Hive?

Start building powerful blockchain applications with WAX today. Follow our quickstart guide to create your first transaction in minutes.

Start Building Now

Build docs developers (and LLMs) love