Transactions

burned-register

Register a hotkey on a subnet by paying the registration cost.

View as Markdown

Pays the subnet's current floating registration cost from the signing coldkey and assigns the hotkey a UID. When the subnet's collateral lock share (p) is zero, the full cost is burned/recycled. When p > 0, the (1 - p) share is burned and the p share is staked to the hotkey and locked as miner collateral (released only through earned emission). The exact TAO charge is only known at execution time, so a configured spend cap blocks this call until raised. Fails with SubNetRegistrationDisabled while the subnet's registration_allowed toggle is off. On a full subnet, registering evicts the non-immune neuron with the lowest emission (ties broken by older registration block, then lower UID), and the new UID can itself be evicted once its immunity period ends. Use root_register instead for the root network (netuid 0).

SignerOriginPalletWraps
coldkeysigned account (pallet role may apply)SubtensorModuleSubtensorModule.burned_register

Parameters

ParameterTypeRequiredDescription
netuidintegeryesSubnet to register on.
hotkey_ss58stringnoHotkey that receives the UID; defaults to the wallet's hotkey.

Address parameters (--hotkey, --coldkey, --dest, ...) accept a raw ss58 address, an address-book or proxy-book name, or a local wallet/hotkey name.

CLI

Preview with --dry-run (shows fee, effects, and policy result without submitting), then submit:

btcli tx burned-register \
  --netuid <int> --dry-run
btcli tx burned-register \
  --netuid <int> -w my_coldkey

Python

import bittensor as bt
from bittensor.wallet import Wallet

wallet = Wallet(name="my_coldkey", hotkey="my_hotkey")
intent = bt.BurnedRegister(netuid=1)

sub = bt.Subtensor()
plan = sub.plan(intent, wallet)   # fee, effects, policy — no submission
result = sub.execute(intent, wallet)
if not result.success:
    print(result.error.code, result.error.remediation)

(bt.Subtensor is also the async client — async with bt.Subtensor() as client: — see The client.) Or build the intent by op name, as an agent would:

result = sub.execute_tool("burned_register", {...}, wallet)

On-chain implementation

SubtensorModule.burned_registerpallets/subtensor/src/macros/dispatches.rs#L818:

#[pallet::call_index(7)]
#[pallet::weight(<T as crate::pallet::Config>::WeightInfo::burned_register())]
pub fn burned_register(
    origin: OriginFor<T>,
    netuid: NetUid,
    hotkey: T::AccountId,
) -> DispatchResult {
    Self::do_register(origin, netuid, hotkey)
}

Delegates to do_register.

Every file is browsable under /code exactly as built into the runtime, or as plain text under /code/raw/<path> (index: /code/index.json).