Skip to content

Latest commit

 

History

History
77 lines (61 loc) · 1.99 KB

create-subnet.md

File metadata and controls

77 lines (61 loc) · 1.99 KB
title
Create a Subnet (Locally)

Create a Subnet (Locally)

Create it

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 $\tau$ balance:

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
:::

Fund your subnet

To remedy your liquidity shortfall, transfer $\tau$ from the Alice account and try again.

  1. 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
  2. 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...
  3. Successfully create the subnet