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
Installing Docker
Installing Docker
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 TEE worker setup
To begin mining on Subnet 42, follow these steps to set up your TEE worker:Clone Repository
Navigate to Directory
Copy Environment File
Edit Environment File
- Your coldkey mnemonic from wallet creation
- Your hotkey mnemonic from wallet creation
- Your role (miner or validator)
- Your machine’s public IP address and port by default:8091 and 8080
- Network UID (165 for testnet, 42 for mainnet)
- Network name (test or finney) finney is for mainnet.
- Telemetry Result Worker Address (This is the address of the telemetry result worker)
- A comma separated list of twitter credentials to use if you want to scrape twitter data
- A comma separated list of twitter Bearer API tokens to use. Takes precedence over TWITTER_ACCOUNTS. This is the most reliable way to scrape twitter data.
- CAPABILITIES: A comma-separated list of capabilities your miner supports via credentials and/or API keys.
What capabilities can miners support for X/Twitter data access and how do I configure them?
What capabilities can miners support for X/Twitter data access and how do I configure them?
.env
file, either by listing specific capabilities or using all
to enable all capabilities:The table below outlines which capabilities are supported by different access types, add each one if you re not using ‘all’.Example of how to add the CAPABILITIES=“searchbyquery,searchbyfullarchive” to the .env file:Capability | Base API | Pro API | Credentials |
---|---|---|---|
all | ✅ Yes | ✅ Yes | ✅ Yes |
searchbyquery | ✅ Yes | ✅ Yes | ✅ Yes |
searchbyfullarchive | ❌ No | ✅ Yes | ✅ Yes |
searchbyprofile | ❌ No | ✅ Yes | ✅ Yes |
searchfollowers | ❌ No | ❌ No | ✅ Yes |
getbyid | ❌ No | ❌ No | ✅ Yes |
getreplies | ❌ No | ❌ No | ✅ Yes |
getretweeters | ❌ No | ❌ No | ✅ Yes |
gettweets | ❌ No | ❌ No | ✅ Yes |
getmedia | ❌ No | ❌ No | ✅ Yes |
gethometweets | ❌ No | ❌ No | ✅ Yes |
getforyoutweets | ❌ No | ❌ No | ✅ Yes |
getbookmarks | ❌ No | ❌ No | ✅ Yes |
getprofilebyid | ❌ No | ❌ No | ✅ Yes |
gettrends | ❌ No | ❌ No | ✅ Yes |
getfollowing | ❌ No | ❌ No | ✅ Yes |
getfollowers | ❌ No | ❌ No | ✅ Yes |
getspace | ❌ No | ❌ No | ✅ Yes |
getspaces | ❌ No | ❌ No | ✅ Yes |
Example .env file
Start Your Node
- Launch the required containers for your node type
- Initialize your miner node
- Connect to the subnet network
Verify TEE Worker
- Visit TEE Worker status dashboard
- Enter your TEE Worker address (e.g. https://<your-ip-address>:8080)
- The tool will display:
- Connection status to your TEE Worker
- Telemetry data including:
- Boot time and last operation timestamp
- Number of Twitter scrapes performed
- Total tweets returned
- Worker capabilities report
- X/Twitter integration test results
Monitor Logs
- Successful network connections
- Mining activity
- Any potential errors or warnings
Upgrading your miner
Stop current miner
Update code
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