Skip to main content

1.2 Quickstart: Miner

Get a C-SWON miner running on testnet in 5 steps.

Step 1 — Clone and Install

git clone https://github.com/adysingh5711/C-SWON.git
cd C-SWON
pip install -r requirements.txt
pip install -e .

Step 2 — Create Wallet

btcli wallet new_coldkey --wallet.name my_miner
btcli wallet new_hotkey --wallet.name my_miner --wallet.hotkey default

Step 3 — Register on the Subnet

btcli subnet register \
--netuid <netuid> \
--wallet.name my_miner \
--wallet.hotkey default \
--subtensor.network test

Step 4 — Run the Miner

python neurons/miner.py \
--netuid <netuid> \
--wallet.name my_miner \
--wallet.hotkey default \
--axon.port 8091 \
--subtensor.network test \
--wandb.off

Step 5 — Verify

btcli subnet metagraph --netuid <netuid> --subtensor.network test
# Confirm your UID appears and axon IP:port is visible

Expected Behaviour

  • Immediately after registration: trust = 0, emission = 0. This is normal.
  • After first few tempos: incentive and emission will begin to appear once validators query and score your workflows.
  • Immunity period: 5,000 blocks (~16.7 hours) — you cannot be deregistered during this window.

Common Errors

ErrorCauseFix
Axon not reachablePort not open externallyOpen port 8091 in firewall
vtrust = 0.0 after 10 temposWeights not acceptedCheck set_weights() return value
Docker permission deniedDocker daemon not accessiblesudo usermod -aG docker $USER && newgrp docker

← Previous1.1 What is C-SWON?
→ Next1.3 Quickstart: Validator
IndexDocumentation Index
Repositorygithub.com/adysingh5711/C-SWON