Skip to main content

Prerequisites

  1. Subtensor lite node with --pruning=2000configured
  2. Python 3.10+ installed
  3. pip/venv for isolated environment
  4. A funded coldkey/hotkey wallet with stake registered in Subnet 73

Simple setup

# clone repository
git clone https://github.com/fx-integral/metahash.git

# change directory
cd metahash

# create python virtual environment
python -m venv .venv && source .venv/bin/activate

# install uv
pip install -U pip wheel uv

# install requirements
uv pip install -e .

# configure .env
BT_WALLET_NAME=metahash
BT_HOTKEY=validatorx
IPFS_API_URL="http://ipfs.metahash73.com:5001/api/v0"

Create a wallet and register the hotkey

# create coldkey
btcli wallet new_coldkey --wallet.name metahash

# create hotkey
btcli wallet new_hotkey --wallet.name metahash --wallet.hotkey validatorx

# register hotkey
btcli register --netuid 73 --wallet.name metahash --wallet.hotkey validatorx

Run Validator (pm2)

pm2 start python \ 
--name metahash-validator \ 
-- neurons/validator.py \
--netuid 73 \
--subtensor.network archive \ 
--wallet.name metahash \ 
--wallet.hotkey validatorx \
--neuron.axon_off \
--logging.debug

Run Validator (python)

python neurons/validator.py \
--netuid 73 \
--subtensor.network archive \ 
--wallet.name metahash \ 
--wallet.hotkey validatorx \
--neuron.axon_off \
--logging.debug
For --subtensor.network you can use archive. However we recommend running your own subtensor node with --pruning=2000

Validators and Alpha Acquisition Strategies

  • Custom Subnet weights can be set in weights.yml
  • Custom Strategy logic can be updated in metahash/validator/strategy.py

Sample(s) - weights.yml

default: 1.0   # every subnet gets 1 unless listed below

0: 0           # disable subnet 0
73: 0          # disable subnet 73
136: 1

Validator Auction Overview

Auction Overview Pn