title |
---|
Create a Subnet (Locally) |
To access the handy pre-provisioned development "Alice" account on your local chain, use:
btcli subnet create \
--subnet-name awesome-first-subnet \
--wallet.name sn-creator \
--subtensor.chain_endpoint ws://127.0.0.1:9945
However, note that this will fail if you do not have a sufficient
Subnet burn cost: τ 1,000.0000
Your balance of: τ 0.0000 is not enough to burn τ 1,000.0000 to register a subnet.
:::tip try it live
Check the burn cost to create a subnet on Bittensor main network and test network:
btcli subnet burn-cost --network finney
btcli subnet burn-cost --network test
To remedy your liquidity shortfall, transfer
-
First, get the ss58 address for the destination wallet for the transfer:
btcli w list
... ── Coldkey sn-creator ss58_address 5C9xw4gDyu11ocdpWrmhT1sbi4xEHCpzEMsyMA4jGfAZQofQ └── Hotkey default ss58_address 5GVsCAY6RuSuoAA1E77xsHJ9PjdZJjJrRkNFDxVtRKPnw7TR
-
Execute the transfer from alice to the sn-creator wallet
btcli wallet transfer \ --amount 1001 \ --wallet.name alice \ --destination "5GVsCAY6RuSuoAA1E77xsHJ9PjdZJjJrRkNFDxVtRKPnw7TR" \ --subtensor.chain_endpoint ws://127.0.0.1:9945
Do you want to transfer: amount: τ 1,001.0000 from: alice : 5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY to: 5GVsCAY6RuSuoAA1E77xsHJ9PjdZJjJrRkNFDxVtRKPnw7TR for fee: τ 0.0001 [y/n]: y 🌏 📡 Transferring...
-
Successfully create the subnet