Transactions

reject-proxy-announcement

Veto a delegate's pending announcement (real-account path).

View as Markdown

Must be signed as the real account. For a keyless pure proxy that means dispatching through a proxy relationship that can reach this call — typically impractical during the same delay window, which is why protected-account cancel uses remove_proxy_announcement (delegate path) instead.

SignerOriginPalletWraps
coldkeysigned account (pallet role may apply)ProxyProxy.reject_announcement

Parameters

ParameterTypeRequiredDescription
delegate_ss58stringyesDelegate that made the announcement.
call_hashstringyesHash previously announced by the delegate (0x-prefixed hex).

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 reject-proxy-announcement \
  --delegate <ss58|name> \
  --call-hash <value> --dry-run
btcli tx reject-proxy-announcement \
  --delegate <ss58|name> \
  --call-hash <value> -w my_coldkey

Python

import bittensor as bt
from bittensor.wallet import Wallet

wallet = Wallet(name="my_coldkey", hotkey="my_hotkey")
intent = bt.RejectProxyAnnouncement(delegate_ss58="5F...", call_hash="...")

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

On-chain implementation

Proxy.reject_announcement — pallets/proxy/src/lib.rs#L566:

#[pallet::call_index(8)]
#[pallet::weight(T::WeightInfo::reject_announcement(
    T::MaxPending::get(),
    T::MaxProxies::get()
))]
pub fn reject_announcement(
    origin: OriginFor<T>,
    delegate: AccountIdLookupOf<T>,
    call_hash: CallHashOf<T>,
) -> DispatchResult {
    let who = ensure_signed(origin)?;
    let delegate = T::Lookup::lookup(delegate)?;
    Self::edit_announcements(&delegate, |ann| {
        ann.real != who || ann.call_hash != call_hash
    })?;

    Ok(())
}

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