Bittensor-LIFO is a tool designed to implement Last-In-First-Out (LIFO) accounting for Bittensor TAO transactions. It helps you manage and track TAO funds across different wallets, ensuring accurate financial reporting and analysis within the Bittensor network.
- TAO Transaction Tracking: Monitor incoming and outgoing TAO transactions across multiple wallets.
- Wallet Categorization: Differentiate between active wallets and secondary wallets for better fund management.
- LIFO Accounting: Apply LIFO principles to manage and report TAO holdings.
- TAOSTATS API Integration: Utilize the TAOSTATS API for real-time transaction data.
- Python 3.7 or higher
- TAOSTATS API Key: Obtain an API key from TAOSTATS.
-
Clone the Repository
git clone https://github.com/cisterciansis/Bittensor-LIFO.git cd Bittensor-LIFO
-
Create a Virtual Environment (Optional but Recommended)
python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Open
read_all_new.py
Use your preferred text editor to open the
read_all_new.py
file. -
Add TAOSTATS API Key
Locate the section where the API key should be inserted and add your TAOSTATS API key:
API_KEY = 'your_taostats_api_key_here'
-
Add Wallet Addresses
Define your wallets by categorizing them into active and secondary wallets.
-
Active Wallets: Wallets that receive ongoing large amounts of TAO from the network (e.g., miners, SN owner wallets, validating wallets).
-
Secondary Wallets: Wallets holding funds and staking but not actively participating to gain significant TAO.
ACTIVE_WALLETS = [ 'wallet_address_1', 'wallet_address_2', # Add more active wallet addresses here ] SECONDARY_WALLETS = [ 'secondary_wallet_address_1', 'secondary_wallet_address_2', # Add more secondary wallet addresses here ]
-
-
Save the Configuration
Ensure all your wallet addresses and the API key are correctly added and save the
read_all_new.py
file.
-
Run
read_all_new.py
This script fetches and processes TAO transactions based on your configuration.
python3 read_all_new.py
-
Run
read_lifo.py
After processing the data, execute the LIFO accounting script to analyze your TAO holdings.
python3 read_lifo.py
-
Active Wallets:
- Purpose: Receive large, ongoing amounts of TAO from the network.
- Examples: Miners, SN owner wallets, validating wallets.
- Usage: Actively participate in the network to earn TAO.
-
Secondary Wallets:
- Purpose: Hold funds and participate in staking without significant TAO earnings.
- Usage: Store and manage TAO without active participation in mining or validating.