Transactions

set-mechanism-emission-split

Set emission split between mechanisms on a subnet.

View as Markdown

Owner-only: divides the subnet's emission between its mechanisms. The list gives one u16 weight per mechanism, in order, and the entries must sum to exactly 65,535; each mechanism receives that fraction of emission. The list may be at most as long as the subnet's current mechanism count (see set_mechanism_count) — a shorter list leaves the trailing mechanisms with zero. Changing the split reallocates future emission only — nothing already emitted moves.

SignerPalletWraps
coldkeyAdminUtilsAdminUtils.sudo_set_mechanism_emission_split

Parameters

ParameterTypeRequiredDescription
netuidintegeryesSubnet to configure; the signer must be its owner.
splitarray of integeryesu16 emission weights in mechanism order, summing to exactly 65,535; at most one entry per mechanism.

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-mechanism-emission-split \
  --netuid <int> \
  --split <a,b,c> --dry-run
btcli tx set-mechanism-emission-split \
  --netuid <int> \
  --split <a,b,c> -w my_coldkey

Python

import bittensor as sub
from bittensor.wallet import Wallet

wallet = Wallet(name="my_coldkey", hotkey="my_hotkey")
intent = sub.SetMechanismEmissionSplit(netuid=1, split=[...])

async with sub.Client("finney") as client:
    plan = await client.plan(intent, wallet)   # fee, effects, policy — no submission
    result = await client.execute(intent, wallet)
    if not result.success:
        print(result.error.code, result.error.remediation)

Or build it by op name, as an agent would:

await client.execute_tool("set_mechanism_emission_split", {...}, wallet)