Skip to content

Get Started

Requirements

Below are the prerequisites for validators. You may be able to make a validator work off lesser specs but it is not recommended.

  • 2 vCPU + 8 GB memory

  • 100 GB balanced persistent disk

  • A Twelvedata API account. (https://twelvedata.com/) with “Pro 610”. The free tier is sufficient for testnet usage.

  • A Polygon API account (https://polygon.io/) with “Currencies Starter” as well as “Indicies Advanced”

For mainnet applications, the paid tiers are required to stay in consensus (~$250/month as of the time of writing). For testnet, you may use the free tiers.

Getting Started

Clone repository

Terminal window
git clone https://github.com/taoshidev/proprietary-trading-network.git

Change directory

Terminal window
cd proprietary-trading-network

Create Virtual Environment

Terminal window
python3 -m venv venv

Activate a Virtual Environment

Terminal window
. venv/bin/activate

Disable pip cache

Terminal window
export PIP_NO_CACHE_DIR=1

Install dependencies

Terminal window
pip install -r requirements.txt

Create a local and editable installation

Terminal window
python3 -m pip install -e .

Create Wallets

This step creates local coldkey and hotkey pairs for your validator.

The validator will be registered to the subnet specified. This ensures that the validator can run the respective validator scripts.

Create a coldkey and hotkey for your validator wallet.

Terminal window
btcli wallet new_coldkey --wallet.name validator
btcli wallet new_hotkey --wallet.name validator --wallet.hotkey default

(Optional) Getting faucet tokens

Faucet is disabled on the testnet. Hence, if you don’t have sufficient faucet tokens, ask the Bittensor Discord community for faucet tokens. Bittensor -> help-forum -> Requests for Testnet TAO

Register keys

This step registers your subnet validator keys to the subnet, giving it the first slot on the subnet.

Terminal window
btcli subnet register --wallet.name validator --wallet.hotkey default

To register your validator on the testnet add the --subtensor.network test flag.

Follow the below prompts:

Terminal window
>> Enter netuid (0): # Enter the appropriate netuid for your environment
Your balance is: # Your wallet balance will be shown
The cost to register by recycle is τ0.000000001 # Current registration costs
>> Do you want to continue? [y/n] (n): # Enter y to continue
>> Enter password to unlock key: # Enter your wallet password
>> Recycle τ0.000000001 to register on subnet:8? [y/n]: # Enter y to register
📡 Checking Balance...
Balance:
τ5.000000000 τ4.999999999
Registered

Check that your keys have been registered

This step returns information about your registered keys.

Check that your validator key has been registered:

Terminal window
btcli wallet overview --wallet.name validator

To check your validator on the testnet add the --subtensor.network test flag

The above command will display the below:

Terminal window
Subnet: 8 # or 116 on testnet
COLDKEY HOTKEY UID ACTIVE STAKE(τ) RANK TRUST CONSENSUS INCENTIVE DIVIDENDS EMISSION(ρ) VTRUST VPERMIT UPDATED AXON HOTKEY_SS58
validator default 197 True 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0 0.00000 56 none 5GKkQKmDLfsKaumnkD479RBoD5CsbN2yRbMpY88J8YeC5DT4
1 1 1 τ0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 ρ0 0.00000
Wallet balance: τ0.000999999