The Wax SDK uses various data models and type definitions to represent blockchain entities and structures.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/openhive-network/wax/llms.txt
Use this file to discover all available pages before exploring further.
Basic types
Fundamental type aliases for blockchain identifiers and data.Account name on the Hive blockchain (3-16 characters, lowercase, digits, hyphens).
Hexadecimal string.
Chain identifier in hexadecimal format.
Transaction identifier in hexadecimal format.
Signature digest in hexadecimal format.
Transaction signature in hexadecimal format.
Head block identifier in hexadecimal format.
Public key in WIF format (e.g., “STM7…”).
Asset types
Types and models for working with Hive blockchain assets (HIVE, HBD, VESTS).Asset type aliases
Numeric type that can represent an asset amount.
Asset in NAI (Number Asset Identifier) format - the HF26 standard format.
Types that can be converted to HIVE NAI format.
Types that can be converted to HBD NAI format.
Types that can be converted to VESTS NAI format.
Any type convertible to NAI asset format.
AssetName enum
Enumeration of asset names.HIVE token.
Hive Backed Dollar token.
VESTS (Hive Power) token.
AssetInfo dataclass
Asset metadata information.Contains asset metadata:
nai: Number Asset Identifier stringprecision: Decimal precision (3 for HIVE/HBD, 6 for VESTS)
AssetFactory protocol
Factory interface for creating assets.Protocol with methods:
coins(amount: AssetAmount) -> NaiAsset- Create from decimal amountsatoshis(amount: int) -> NaiAsset- Create from integer satoshis
Authority types
Types for account authorities and permissions.Authority type aliases
Authority structure containing weight threshold and authorized keys/accounts.
Dictionary mapping public keys to their weight in an authority.
Dictionary mapping account names to their weight in an authority.
WaxAuthorities dataclass
Container for all account authorities.Contains account authorities:
owner: Owner authority (highest level)active: Active authority (financial operations)posting: Posting authority (content operations)
WaxAccountAuthorityInfo dataclass
Complete authority information for an account.Contains:
account: Account nameauthorities: WaxAuthorities object with owner/active/postingmemo_key: Public memo keylast_owner_update: Last owner authority update timeprevious_owner_update: Previous owner authority update time
ITransactionRequiredAuthorities interface
Interface for accessing required authorities from transactions.Properties:
posting_accounts: Set of accounts requiring posting authorityactive_accounts: Set of accounts requiring active authorityowner_accounts: Set of accounts requiring owner authorityother_authorities: List of custom authority structures
Key data interfaces
Interfaces for private key and brain key data.IPrivateKeyData interface
Properties:
wif_private_key: Private key in WIF formatassociated_public_key: Associated public key in WIF format
IBrainKeyData interface
Extends
IPrivateKeyData with:brain_key: Space-separated brain key wordswif_private_key: Derived private keyassociated_public_key: Associated public key
Manabar data
IManabarData interface
Interface for manabar calculation results.Properties:
max_mana: Maximum mana capacitycurrent_mana: Current regenerated mana valuepercent: Manabar percentage (0-100)
Transaction types
Type aliases for different transaction formats.Transaction in protocol buffer format.
Transaction in JSON string format for Hive API calls.
Operation types
Type aliases for operation formats.Union of proto and protocol operation formats.
Internal operation representation.
Types convertible to proto operation.
Operation in HF26 protocol format.
Configuration types
ChainConfig type
Dictionary containing chain configuration parameters like block interval, address prefix, and protocol constants.
TTimestamp type
Type alias for timestamps - can be absolute (datetime) or relative (timedelta).