Hardware Prerequisites
Required Hardware
🔒 Intel SGX Support
- Intel SGX 2.0+ enabled CPU required
- Hardware-level security enclave
- Secure computation environment
💻 Compatible Processors
- 11th Gen+ Intel Core series
- Modern Intel Xeon processors
- Must have SGX feature enabled in BIOS
Cloud Provider Recommendations
For optimal TEE mining performance and reliability, we recommend using Microsoft Azure. This provider has been extensively tested and validated by our team to ensure seamless compatibility with Masa Network’s TEE mining requirements:Microsoft Azure
✓ Proven reliability for TEE workloads
✓ Validated for Masa Network mining
✓ Our recommended provider
Alibaba Cloud
✗ Uses outdated SGX API (v3)
✗ Incompatible with Masa requirements
✗ Please use Azure or other validated providers
Azure instance capacity planning
When running TEE miners on Azure, it’s important to understand the capacity limits to optimize costs and performance. Here’s what we’ve validated:Instance Specifications
- 4 vCPUs
- 16 GiB Memory
- SGX-enabled
Miner Capacity
- Maximum 4 TEE miners per instance
- 1 miner per vCPU recommended
- Attempting to run >4 miners causes automatic termination
System Setup & Configuration
Prerequisites
Before starting TEE mining operations, ensure you have:Docker Setup
✓ Permissions to run containers
Network Keys
✓ Generate coldkey and hotkey mnemonics and register your miner
Installing the Bittensor BTCLI
Installing the Bittensor BTCLI
- masOS and Linux
- Windows
Installing Docker
Installing Docker
- Linux
- Windows
Generate coldkey and hotkey mnemonics and register your miner
Generate coldkey and hotkey mnemonics and register your miner
Creating your wallet mnemonics and register your miner
Follow these steps to create your wallet keys and register as a miner on the network. You’ll need to generate both a coldkey (for secure storage) and hotkey (for active mining operations).Create a Cold Wallet
miner
:Create a Hot Wallet
Verify Your Wallets
miner
wallet listed, along with its associated hotkey (default
).Register Your Node
- Configure your node as a miner
- Set up the necessary network connections
Verify Registration
- All registered nodes and their roles
- Your miner’s status and registration
- Current network topology
Subnet 42 Miner setup
To begin mining on Subnet 42, follow these steps:Clone Repository
Navigate to Directory
Copy Environment File
Edit Environment File
Start Your Node
- Launch the required containers for your node type
- Initialize your miner node
- Initialize your TEE worker
- Connect to the subnet network
Verify TEE Worker
- Verify your IP address is correct in the .env file
- Check that port 8080 is open in your firewall
- Ensure the TEE worker container is running properly
Monitor Logs
Apify Support
Miners are able to support various Apify actors by setting anAPIFY_API_KEY
in your .env file. This will give you default access to the Apify API. Gopher supports the following actors - it is the miner’s responsibility to rent the actor if needed!
trudax~reddit-scraper
epctex~tiktok-search-scraper
lexis-solutions~tiktok-trending-videos-scraper
dusan.vystrcil~llm-dataset-processor
kaitoeasyapi~premium-x-follower-scraper-following-data
apify~website-content-crawler
LLM Support
Some jobs include additional LLM processing, such asweb
scraper
jobs. Miners may add either a CLAUDE_API_KEY
or GEMINI_API_KEY
to their .env file to support this type of work.
Cookie Management
If you haveTWITTER_ACCOUNTS
defined in your .env file, you need to provide relevant cookies in the .masa
folder of your TEE worker. Each JSON file must be named with the username
of the account and a _twitter_cookies.json
suffix.(This will of course soon change to .gopher
)
Gopher provides helpful tools via Docker commands, and a Python script built with Chromium here.
Upgrading your miner
Stop current miner
Start new version
Frequently Asked Questions
⚙️ Setup & Configuration
Can I run multiple miners on the same instance?
Can I run multiple miners on the same instance?
How many miners can I run per instance?
How many miners can I run per instance?
Can I use a single scraper for multiple miners?
Can I use a single scraper for multiple miners?
Do I need separate Twitter/X accounts per miner?
Do I need separate Twitter/X accounts per miner?
Can I authenticate via Twitter/X API instead of premium account scraing with logins?
Can I authenticate via Twitter/X API instead of premium account scraing with logins?
Should I invest in a Twitter API subscription?
Should I invest in a Twitter API subscription?
Will miners be able to share TEE workers in the future?
Will miners be able to share TEE workers in the future?
How does Twitter/X data access affect performance?
How does Twitter/X data access affect performance?
- Authentication failures
- Slow response times
- Missing or incomplete data
- Rate limiting issues
- API quota exhaustion
- Basic Tier ($100/month)
- Good starting point for testing
- Limited to 500k tweets/month
- Recent search only (7 days)
- Pro Tier ($5000/month)
- Full archive search access
- Up to 1M tweets/month
- Higher rate limits
- More reliable for production