Mining Guide
Miners operating multiple machines with the same API key should avoid sending multiple requests simultaneously, as this may lead to rate-limiting.
Welcome to the Market Compass Subnet 17 Mining Guide! In this guide, you'll learn how to set up and deploy a mining node on Subnet 17 to contribute to the data gathering process for Market Compass. Let's get started:
Prerequisites
Before diving into the mining process, ensure you have the necessary environment variables set up:
MC_BEARER_TOKEN: Bearer token for Twitter Pro API. Export this variable with your X (Twitter) API token.
MC_SUBNET_API_X_API_KEY: Market Compass API key for validators. Contact us via Discord-ticket on the Subnet 17 Discord Server to obtain a new API key.
MC_SUBNET_API_URL: URL to the current version of the used API. Set this variable to the appropriate API URL.
Dependencies
Ensure you have the necessary dependencies installed. The key dependency is the CommuneX library. You can find the full dependency list in the requirements.txt file. Here are the main dependencies:
communex
typer
uvicorn
keylimiter
pydantic-settings
Miner Setup
Follow these steps to set up and register your miner on Subnet 17:
Run Miner: From the root of your project, run the following command to start the miner:
Register Miner: Register your miner using the following command:
Miner Code
Validator Setup
To validate and register your miner, follow these steps:
Run Validator: Execute the validator script to initiate validation:
Register Validator: Register your validator using the following command:
Further Reading
For more information and documentation on the Commune AI ecosystem and subnet details, please visit the Official Commune Page and its developer documentation.
Congratulations! You've successfully set up and deployed your mining node on Subnet 17. Your contributions will play a crucial role in gathering valuable data for Market Compass, empowering users with actionable insights and intelligence in the cryptocurrency market.
Last updated