Bittensor-wallet is a Python SDK that provides an interface for managing cryptographic key-pairs (coldkeys and hotkeys) necessary to interact with the Bittensor decentralized machine learning network. It allows users to prove identity, sign transactions, access TAO tokens, and manage stake in subnets. The library is currently at version 4.0.1 and has a frequent release cadence, with recent updates supporting Python 3.14.
pip install bittensor-walletVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize the `Wallet` object and create (or load) a coldkey and hotkey pair. The mnemonic (seed phrase) is crucial for recovery and is printed to the console upon creation, requiring secure offline storage. For production use, consider using passwords and robust key management strategies.
Review any code that imports Bittensor wallet JSON files and ensure it handles the `when_created` field as optional.
Always install `bittensor-wallet` directly from PyPI using `pip install bittensor-wallet` and verify the installed version against official announcements. Do not use unofficial distribution channels.
Ensure the wallet and hotkey are created using `wallet.create()` before attempting to access them, or provide the correct path/name. You can also regenerate keys from a mnemonic if you have it.
Verify the password used for wallet creation or decryption. If forgotten and no mnemonic backup exists, recovery may be impossible.
Wait for a few minutes before resubmitting the transaction, or ensure your application logic accounts for transaction finalization delays.
No dependency data recorded yet.