Module types

Module types 

Source
Expand description

§Bittensor Types

Core type definitions for the Bittensor SDK including:

  • Hotkey: SS58-formatted Bittensor hotkey addresses
  • Balance: TAO/RAO balance representation with arithmetic
  • Identity types: ValidatorUid, MinerUid

Structs§

Balance
Balance representation for Bittensor tokens
Hotkey
Bittensor hotkey identifier in SS58 format
MinerUid
Bittensor miner unique identifier (u16)
ValidatorUid
Bittensor validator unique identifier (u16)

Constants§

RAO_PER_TAO
Number of RAO per TAO (10^9)

Functions§

account_id_to_hotkey
Convert an AccountId to a Hotkey
hotkey_to_account_id
Convert a Hotkey to an AccountId
rao_to_tao
Convert RAO to TAO
tao_to_rao
Convert TAO to RAO