Page cover

Mining Guide

circle-exclamation

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:

  1. MC_BEARER_TOKEN: Bearer token for Twitter Pro API. Export this variable with your X (Twitter) API token.

    export MC_BEARER_TOKEN=AAA...
  2. 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.

    export MC_SUBNET_API_X_API_KEY=<your-api-key>
  3. MC_SUBNET_API_URL: URL to the current version of the used API. Set this variable to the appropriate API URL.

    export MC_SUBNET_API_URL=https://api3.subnet.marketcompass.ai

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.txtarrow-up-right 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:

  1. Run Miner: From the root of your project, run the following command to start the miner:

  2. Register Miner: Register your miner using the following command:

Miner Code

Miner code

Validator Setup

To validate and register your miner, follow these steps:

  1. Run Validator: Execute the validator script to initiate validation:

  2. 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 Pagearrow-up-right 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