Transactions

set-commit-burn

Set one subnet owner's commitment-channel burn parameter.

View as Markdown

name is one of enabled, min_burn, max_burn, half_life, or increase_mult. Min/max values are TAO amounts, half-life is blocks, and increase multiplier is a decimal in 1..3 (or its raw U64F64 bits). Changes require the subnet-owner coldkey or root, respect the owner's rate-limit window, and are independent for each mechanism and channel. Disabling burn makes subsequent channel commitments free apart from fees; it does not refund earlier burns. Read the live decayed price and stored settings with the commit_burn read.

SignerOriginPalletWraps
coldkeysubnet ownerAdminUtilsAdminUtils.sudo_set_commit_burn_enabled, AdminUtils.sudo_set_commit_burn_min, AdminUtils.sudo_set_commit_burn_max, AdminUtils.sudo_set_commit_burn_half_life, AdminUtils.sudo_set_commit_burn_increase_mult

Verify

After inclusion, confirm the effect with the commit-burn read:

btcli query commit-burn --netuid <integer> --mechid <integer> --channel <integer> --json

Parameters

ParameterTypeRequiredDescription
netuidintegeryesSubnet to configure; the signer must be its owner.
namestringyesBurn parameter: enabled, min_burn, max_burn, half_life, or increase_mult.
valueboolean | integer | number | stringyesEnabled flag, TAO min/max, block half-life, or 1..3 multiplier / raw U64F64 integer.
mechidintegernoMechanism whose commitment channel to use.
channelintegernoIndependent commitment channel; separate from the legacy commitment.

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 set-commit-burn \
  --netuid <int> \
  --name <value> \
  --value <value> --dry-run
btcli tx set-commit-burn \
  --netuid <int> \
  --name <value> \
  --value <value> -w my_coldkey

Python

import bittensor as bt
from bittensor.wallet import Wallet

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

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("set_commit_burn", {...}, wallet)

On-chain implementation

Chain callSource
AdminUtils.sudo_set_commit_burn_enabledpallets/admin-utils/src/lib.rs#L3171
AdminUtils.sudo_set_commit_burn_minpallets/admin-utils/src/lib.rs#L3187
AdminUtils.sudo_set_commit_burn_maxpallets/admin-utils/src/lib.rs#L3205
AdminUtils.sudo_set_commit_burn_half_lifepallets/admin-utils/src/lib.rs#L3223
AdminUtils.sudo_set_commit_burn_increase_multpallets/admin-utils/src/lib.rs#L3243

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