Transactions
stake-burn
Buy back / burn stake via the stake-burn extrinsic.
Spends TAO from the signing coldkey to buy the subnet's alpha and burn it,
reducing alpha supply (a buyback-and-burn) rather than adding to the
signer's stake. The TAO is spent permanently — nothing lands in your stake,
so this is not an investment call; use a regular add-stake intent to
acquire a position. Fails on the root subnet
(CannotBurnOrRecycleOnRootSubnet). The chain accepts an optional
limit (omitted = market order), but this intent always requires
limit_price and executes all-or-nothing: the swap fails instead of
partially filling at a worse rate. Counts against a configured spend
cap.
| Signer | Pallet | Wraps |
|---|---|---|
coldkey | SubtensorModule | SubtensorModule.add_stake_burn |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
netuid | integer | yes | Subnet whose alpha is bought and burned. |
amount_tao | number | "all" | yes | Spent from the coldkey to buy alpha that is then burned. |
limit_price | integer | yes | Worst acceptable price in rao per alpha; the call fails rather than filling beyond it. |
hotkey_ss58 | string | no | Hotkey the burn is routed through; 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 stake-burn \
--netuid <int> \
--amount-tao <amount|all> \
--limit-price <int> --dry-run
btcli tx stake-burn \
--netuid <int> \
--amount-tao <amount|all> \
--limit-price <int> -w my_coldkeyPython
import bittensor as sub
from bittensor.wallet import Wallet
wallet = Wallet(name="my_coldkey", hotkey="my_hotkey")
intent = sub.StakeBurn(netuid=1, amount_tao=1.0, limit_price=0)
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("stake_burn", {...}, wallet)