Transactions

kill-pure-proxy

Close a pure proxy account and return its reserved deposit.

View as Markdown

Must be signed by the pure proxy itself (i.e. dispatched through it with proxy_for=<pure proxy>), and the parameters must reproduce the exact creation: spawner, type, index, plus the block height and extrinsic index of the create_pure_proxy call. Irreversible — any funds left in the account become permanently inaccessible, so empty it first.

SignerPalletWraps
coldkeyProxyProxy.kill_pure

Parameters

ParameterTypeRequiredDescription
spawner_ss58stringyesAccount that originally created the pure proxy.
proxy_typestringnoType the pure proxy was created with (must match exactly).
indexintegernoIndex the pure proxy was created with (must match exactly).
heightintegernoBlock number of the creating create_pure_proxy call.
ext_indexintegernoExtrinsic index of the creating call within that block.

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 kill-pure-proxy \
  --spawner <ss58|name> --dry-run
btcli tx kill-pure-proxy \
  --spawner <ss58|name> -w my_coldkey

Python

import bittensor as sub
from bittensor.wallet import Wallet

wallet = Wallet(name="my_coldkey", hotkey="my_hotkey")
intent = sub.KillPureProxy(spawner_ss58="5F...")

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