Vanta CLI Guide
Vanta CLI is a command-line tool that extends the bittensor-cli tool for Vanta Network operations. It provides enhanced registration functionality with collateral management and extends standard Bittensor wallet, subnet, and stake operations.
Description
Vanta CLI sits on top of the bittensor-cli tool and extends it by customizing and hooking into commands. As a subnet on the Bittensor network, Vanta Network operates on subnet 8 (netuid: 8) on the mainnet/finney network and subnet 116 (netuid: 116) on the testnet. Vanta Network requires additional collateral setup during registration, which this tool automates alongside the standard subnet registration process.
High Level Process Flow
TAO Balance to Miner Setup Flow
Detailed Steps
- TAO Balance: Ensure sufficient TAO in your wallet for registration, staking, and collateral
- Register Miner: Use
btcli subnet registerto register your miner hotkey on subnet 8/116 - Stake TAO: Use
vanta stake addto stake TAO to your miner hotkey - Add Collateral: Use
vanta collateral depositto add required collateral - Miner Ready: Your miner is now configured and ready to operate
Network Targeting
- Mainnet/Finney: Targets subnet 8 (netuid: 8)
- Testnet: Targets subnet 116 (netuid: 116)
- Commands automatically select the correct subnet based on the network parameter
Installation
From Source
git clone https://github.com/taoshidev/vanta-cli.gitcd vanta-clipip install .Homebrew (macOS/Linux)
Coming soon
Pip
Coming soon
Commands
All commands are prefixed with vanta. For example: vanta wallet list
Wallet Operations
List Wallets
vanta wallet list [OPTIONS]Lists all available wallets with registration information.
Options:
--wallet-path, --path- Path to wallets directory (default:~/.bittensor/wallets)
Wallet Overview
vanta wallet overview [OPTIONS]Shows detailed wallet information including balance and registration status.
Options:
--wallet-name, --name- Name of the wallet--wallet-path, --path- Path to wallets directory (default:~/.bittensor/wallets)--network- Network to connect to (default:finney)--netuid- Netuid for connection (116for test,8for mainnet/finney)--json- Output result as JSON
Create New Coldkey
vanta wallet new_coldkey [OPTIONS]Creates a new coldkey for the wallet.
Create New Hotkey
vanta wallet new_hotkey [OPTIONS]Creates a new hotkey for the wallet.
Subnet Operations
Register to Subnet 8
vanta subnets register [OPTIONS]Registers a neuron to the Vanta Network with automatic collateral setup. Automatically targets:
- Subnet 8 (netuid: 8) on mainnet/finney
- Subnet 116 (netuid: 116) on testnet
Options:
--wallet-name, --name- Name of the wallet to use for registration--wallet-hotkey, --hotkey- Name of the hotkey to use--wallet-path- Path to wallet directory (default:~/.bittensor/wallets)--network- Network to connect to (default:test)--era- Era to register for--json- Output result as JSON--prompt/--no-prompt- Whether to prompt for confirmation
Stake Operations
Add Stake
vanta stake add [OPTIONS]Add stake to hotkeys on the Vanta Network. Automatically targets:
- Subnet 8 (netuid: 8) on mainnet/finney
- Subnet 116 (netuid: 116) on testnet
Options:
--wallet-name, --name- Name of the wallet to use (required)--wallet-path, --path- Path to wallets directory (default:~/.bittensor/wallets)--hotkey- Hotkey name to use for staking--network- Network to connect to (default:finney)--amount- Amount of TAO to stake
List Stakes
vanta stake list [OPTIONS]Lists stakes for a wallet with detailed information.
Options:
--wallet-name, --name- Name of the wallet to list stakes for--wallet-path- Path to wallet directory (default:~/.bittensor/wallets)--network- Network to connect to (default:test)--coldkey_ss58- Coldkey SS58 address to list stakes for--live- Enable live monitoring of stakes--verbose- Enable verbose output--json- Output result as JSON--prompt/--no-prompt- Whether to prompt for confirmation
Collateral Operations
Add Collateral
vanta collateral deposit [OPTIONS]Deposit collateral to the Vanta Network.
Options:
--wallet-name, --name- Name of the wallet to use for collateral (required)--wallet-path- Path to the wallet directory (default:~/.bittensor/wallets)--network- Network to connect to (default:test)--amount- Amount of Theta to use for collateral (default: 1)
List Collateral Balance
vanta collateral list [OPTIONS]Check collateral balance for a miner address.
Options:
--miner-address, --miner_address- Miner SS58 address to check collateral balance for (required)--wallet-name, --name- Name of the wallet (for display purposes)--json- Output result as JSON
Withdraw Collateral
vanta collateral withdraw [OPTIONS]Withdraw collateral from the Vanta Network.
Options:
--amount- Amount to withdraw from collateral (required)--miner-address, --miner_address- Miner SS58 address to withdraw collateral for (required)--wallet-name, --name- Name of the wallet (for display purposes)--wallet-path- Path to wallet directory (default:~/.bittensor/wallets)--prompt/--no-prompt- Whether to prompt for confirmation
Miner Operations
Asset Class Selection
vanta asset select [OPTIONS]Select an asset class for your miner.
Options:
--wallet-name, --name- Name of the miner wallet for signing--hotkey- Miner hotkey name to make asset class selction for--network- Network to connect to (default:test)
Examples
Register to Vanta Network with collateral
# Register on testnet (targets subnet 116)vanta subnets register --wallet-name my_wallet --hotkey my_hotkey --network test
# Register on mainnet (targets subnet 8)vanta subnets register --wallet-name my_wallet --hotkey my_hotkey --network finneyList wallet stakes with live monitoring
# List stakes on mainnetvanta stake list --wallet-name my_wallet --live --network finney
# List stakes on testnetvanta stake list --wallet-name my_wallet --live --network testAdd stake to all hotkeys
# Add stake on mainnet (subnet 8)vanta stake add --wallet-name my_wallet --all-hotkeys --amount 10.0 --network finney
# Add stake on testnet (subnet 116)vanta stake add --wallet-name my_wallet --all-hotkeys --amount 10.0 --network testView wallet overview
vanta wallet overview --wallet-name my_wallet --network finneyAdd collateral
# Add collateral on testnetvanta collateral deposit --wallet-name my_wallet --amount 1.0 --network test
# Add collateral on mainnetvanta collateral deposit --wallet-name my_wallet --amount 1.0 --network finneyCheck collateral balance
vanta collateral list --miner-address 5HE... --wallet-name my_walletWithdraw collateral
vanta collateral withdraw --amount 5.0 --miner-address 5HE... --wallet-name my_walletSelect asset class
vanta asset select --wallet-name my_wallet --hotkey my_hotkeyRequirements
- Python 3.10
- bittensor-cli >= 9.7.1
- Access to Bittensor network
License
MIT License