Summary
Bittensor TAO mining is not traditional proof-of-work mining. Miners register a hotkey on a subnet and provide useful work—compute, inference, storage, or prediction—that validators score. Rewards in TAO depend on your subnet's emission and your performance relative to other miners.
This guide covers how to choose a subnet, the hardware and software you need, how to register and run a miner, and how to keep your miner connected to the Bittensor chain using reliable RPC endpoints. It also explains common failure modes and how to monitor your miner's health.
Quick Recommendation: Pick a Subnet Before You Buy Hardware
Before you spend money on GPUs or start configuring a miner, decide which subnet you want to mine on. Bittensor is not a single mining algorithm. Each subnet defines its own work, scoring, and hardware requirements. The subnet you choose determines your hardware, your expected rewards, and your competition.
For beginners, the best approach is to start with a subnet that matches your existing skills and hardware. If you have a gaming PC with a modern GPU, you can mine on subnets that require inference or compute. If you have storage capacity, look for storage-focused subnets. If you have no specialized hardware, you can still mine on subnets that reward lightweight tasks, but expect lower rewards.
Check the subnet's emission rate and the number of registered miners. High-emission subnets attract more competition, while new subnets may offer easier entry but lower immediate rewards. Use a Bittensor explorer to compare subnets before committing.
Once you pick a subnet, you need a reliable connection to the Bittensor chain. Your miner must register a hotkey and periodically send heartbeats and score updates. If your RPC endpoint is slow or unreliable, your miner may miss deadlines and get deregistered. Consider using a managed RPC provider like OnFinality to keep your miner connected without running your own archive node. See RPC pricing and supported RPC networks for options.
What Is TAO Mining on Bittensor?
Bittensor is a decentralized machine intelligence network. Instead of solving hash puzzles, miners produce digital commodities—compute, inference, storage, prediction—that validators score. The network pays miners in TAO based on the value they contribute.
Mining on Bittensor involves three roles:
- Miners provide the commodity and are scored by validators.
- Validators score miners and set weights.
- Subnet creators define the incentive mechanism for their subnet.
As a miner, you register a hotkey on a subnet and receive a UID. Your miner software then performs the subnet's task and submits results to the chain. Validators verify your work and assign scores. Your TAO rewards depend on your score relative to other miners and the subnet's emission rate.
Unlike proof-of-work, there is no block reward for hashing. Instead, TAO is emitted continuously to subnets based on their stake and performance. This means your mining income is not fixed; it varies with your performance and the subnet's success.
Hardware Requirements: What You Actually Need
Hardware requirements vary by subnet. Some subnets require high-end GPUs, while others can run on a CPU or even a Raspberry Pi. Always check the subnet's documentation before buying hardware.
Here is a general breakdown:
| Subnet Type | Example Tasks | Typical Hardware |
|---|---|---|
| Inference | Text generation, image generation | High-end GPU (e.g., NVIDIA A100, RTX 4090) |
| Compute | Machine learning training, data processing | Multiple GPUs or TPUs |
| Storage | Data storage and retrieval | Large hard drives, decent CPU |
| Prediction | Market prediction, forecasting | CPU with good RAM |
| Lightweight | Simple tasks, API calls | CPU, low RAM |
For a gaming PC, you can start with subnets that require a single GPU. Many subnets have a minimum hardware requirement listed in their README. If you exceed the minimum, you may have an advantage, but competition is fierce.
Keep in mind that mining on Bittensor is not passive. You need to keep your miner online and responsive. If your hardware fails or your internet drops, you may miss deadlines and lose your UID.
How to Register a Hotkey and Start Mining
To mine on Bittensor, you need a wallet with a coldkey and a hotkey. The coldkey holds your TAO, and the hotkey is used for mining operations. You can create a wallet using the Bittensor CLI or the Bittensor SDK.
Here is a basic workflow:
- Install the Bittensor SDK and CLI using
uvorpip. - Create a wallet with
btcli wallet create. - Fund your coldkey with TAO for registration fees and transaction costs.
- Register your hotkey on your chosen subnet with
btcli subnet register. - Run your miner using the subnet's miner script.
Registration costs a small amount of TAO and may require a stake. The exact fee varies by subnet and network congestion.
Here is an example of registering a hotkey using the CLI:
# Create a new wallet
btcli wallet create --wallet-name my_miner
# Register your hotkey on subnet 1
btcli subnet register --netuid 1 --wallet-name my_miner --hotkey my_hotkey
After registration, you will receive a UID. Your miner software will use this UID to submit work. Make sure your miner is configured with your wallet and hotkey.
Choosing the Right RPC Endpoint for Your Miner
Your miner needs to communicate with the Bittensor chain to register, submit scores, and stay active. The default endpoint may be a public RPC provided by the Bittensor team, but public endpoints can be rate-limited or unreliable.
For production mining, you have two options:
- Run your own subtensor node and use its RPC endpoint.
- Use a managed RPC provider like OnFinality.
Running your own node gives you full control but requires storage, bandwidth, and maintenance. A managed RPC provider handles the infrastructure for you, offering reliable endpoints with failover and load balancing. This is especially useful if you run multiple miners or need high availability.
OnFinality provides Bittensor RPC endpoints that you can use with your miner. Check the Bittensor Finney network page for endpoint details. You can also compare RPC pricing to see if managed RPC fits your budget.
Here is an example of setting your miner to use a custom RPC endpoint:
import bittensor as bt
subtensor = bt.subtensor(network="wss://your-endpoint.onfinality.io")
# Now use subtensor to query the chain
Make sure your endpoint supports WebSocket connections, as many miner operations use WebSocket for real-time updates.
Common Failure Modes and How to Debug Them
Mining on Bittensor can fail in several ways. Here are common issues and how to fix them:
- Deregistration: If your miner misses too many deadlines, you may be deregistered. Check your miner logs for errors and ensure your RPC endpoint is responsive.
- Stale scores: If your miner submits scores late, validators may ignore them. Use a low-latency RPC endpoint and ensure your miner is not overloaded.
- Connection errors: If your RPC endpoint goes down, your miner cannot communicate with the chain. Use a provider with failover, or run your own node with monitoring.
- Insufficient stake: Some subnets require a minimum stake to stay registered. Check your subnet's requirements.
- Hardware failure: If your GPU overheats or your disk fills up, your miner may crash. Monitor your hardware and set up alerts.
To debug, start by checking your miner logs. Look for error codes and messages. The Bittensor SDK provides machine-readable error codes that can help you identify the issue. If you are using a managed RPC provider, check their status page for outages.
Here is a simple monitoring script that checks if your miner is still registered:
import bittensor as bt
subtensor = bt.subtensor(network="wss://your-endpoint.onfinality.io")
wallet = bt.wallet(name="my_miner", hotkey="my_hotkey")
uid = subtensor.get_uid_for_hotkey(wallet.hotkey.ss58_address, netuid=1)
if uid is None:
print("Miner is deregistered!")
else:
print(f"Miner is registered with UID {uid}")
Monitoring Your Miner and Maximizing Rewards
To maximize your TAO rewards, you need to monitor your miner's performance and adjust your strategy. Key metrics to track:
- Score: Your score relative to other miners on the subnet.
- Emission: The amount of TAO your subnet receives.
- Uptime: The percentage of time your miner is online and submitting work.
- Latency: The time it takes for your miner to submit results.
Use a Bittensor explorer like Taostats to monitor your miner's status and the subnet's health. You can also set up alerts for deregistration or score drops.
If your score is low, consider improving your hardware, optimizing your miner code, or switching to a less competitive subnet. If your subnet's emission is declining, you may want to migrate to a more promising subnet.
Remember that mining is competitive. Even with the best hardware, you may not earn a profit if the subnet is oversaturated. Do your research and be prepared to adapt.
Key Takeaways
- Bittensor TAO mining is not proof-of-work; it involves providing useful work that validators score.
- Choose a subnet that matches your hardware and skills before investing in equipment.
- Register a hotkey and fund your wallet with TAO for fees.
- Use a reliable RPC endpoint to keep your miner connected and avoid deregistration.
- Monitor your miner's score, uptime, and emission to maximize rewards.
- Consider managed RPC providers like OnFinality for high availability and failover.
Frequently Asked Questions
Can I mine Bittensor with a gaming PC?
Yes, many subnets require only a single GPU, which a gaming PC can provide. Check the subnet's hardware requirements before starting.
What is the best subnet to mine on?
There is no single best subnet. It depends on your hardware, skills, and risk tolerance. High-emission subnets are competitive, while new subnets may offer easier entry.
How much does it cost to register a miner?
Registration costs a small amount of TAO, which varies by subnet and network congestion. You also need TAO for transaction fees.
Do I need to run my own node to mine?
No, you can use a public RPC endpoint or a managed provider like OnFinality. Running your own node gives you more control but requires maintenance.
What happens if my miner goes offline?
If your miner misses deadlines, you may be deregistered. Use monitoring and reliable RPC to minimize downtime.
Can I mine on multiple subnets?
Yes, you can register your hotkey on multiple subnets, but you need to run separate miner instances for each.
Is TAO mining profitable?
Profitability depends on your hardware, electricity costs, subnet competition, and TAO price. Do your own research and start small.
For more details on RPC endpoints and network support, visit our supported RPC networks page and RPC pricing page.