Skip to main content
WAX is available for both Python and TypeScript. Choose your preferred language and follow the installation steps below.

Prerequisites

Before installing WAX for Python, ensure you have:
  • Python 3.12 or higher (3.14+ recommended)
  • pip or Poetry package manager
We recommend using Poetry for Python dependency management. Install it with:
curl -sSL https://install.python-poetry.org | python3 - --version 2.1.3

Install WAX

1

Create a virtual environment

It’s recommended to use a virtual environment for your project:
python3 -m venv venv
source ./venv/bin/activate
2

Set registry environment variables

Configure pip to use the WAX package registry:
export FIRST_INDEX="https://gitlab.syncad.com/api/v4/projects/362/packages/pypi/simple"
export SECOND_INDEX="https://gitlab.syncad.com/api/v4/projects/434/packages/pypi/simple"
export THIRD_INDEX="https://gitlab.syncad.com/api/v4/projects/198/packages/pypi/simple"
3

Install the package

Install WAX using pip:
python3 -m pip install \
  --index-url $FIRST_INDEX \
  --extra-index-url $SECOND_INDEX \
  --extra-index-url $THIRD_INDEX \
  hiveio-wax
Or with Poetry:
poetry add hiveio-wax
4

Verify installation

Test that WAX is installed correctly:
from wax import create_wax_foundation

wax = create_wax_foundation()
print(wax.hive(5))  # Output: HIVE in NAI format

Installing Beekeeper (optional)

For transaction signing, you’ll need a wallet integration. The recommended option is Beekeeper:
pip install beekeepy
Beekeeper provides a secure in-memory wallet for managing private keys.

Dependencies

WAX for Python includes the following key dependencies:
  • protobuf - Protocol buffer support
  • httpx - Async HTTP client with HTTP/2
  • loguru - Logging
  • python-dateutil - Date utilities
  • hiveio-api - Hive API definitions
These are installed automatically when you install WAX.

Troubleshooting

Python: ModuleNotFoundError

If you get a ModuleNotFoundError, ensure:
  1. Your virtual environment is activated
  2. You’ve set the registry environment variables correctly
  3. You’re using Python 3.12 or higher

TypeScript: Cannot find module

If imports fail, try:
  1. Delete node_modules and reinstall: rm -rf node_modules && npm install
  2. Ensure you’re using Node.js 20.11+ or 21.2+
  3. Check that your bundler supports ESM modules

WASM loading errors

If you see WASM-related errors in the browser:
  1. Check that your bundler is configured for WASM support
  2. Ensure you’re serving the application over HTTP/HTTPS (not file://)
  3. For Vite, make sure assets are being copied correctly

Next steps

Quick start guide

Learn how to create your first Hive transaction with WAX

Build docs developers (and LLMs) love