Transactions
release-own-coldkey-swap-destination-reservation
Free a coldkey-swap destination reservation that names this account.
Announce exclusively reserves its destination so a third party cannot
register that address as a hotkey during the delay. If someone else
announced a swap into your coldkey (or you no longer want the hold), sign
this from the reserved destination to drop exclusivity. The announcer's
announcement may still exist; reservations also expire after
when + reannouncement delay.
| Signer | Origin | Pallet | Wraps |
|---|---|---|---|
coldkey | signed account (pallet role may apply) | SubtensorModule | SubtensorModule.release_own_coldkey_swap_destination_reservation |
Parameters
This operation takes no parameters.
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 release-own-coldkey-swap-destination-reservation --dry-run
btcli tx release-own-coldkey-swap-destination-reservation -w my_coldkeyPython
import bittensor as bt
from bittensor.wallet import Wallet
wallet = Wallet(name="my_coldkey", hotkey="my_hotkey")
intent = bt.ReleaseOwnColdkeySwapDestinationReservation()
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("release_own_coldkey_swap_destination_reservation", {...}, wallet)On-chain implementation
SubtensorModule.release_own_coldkey_swap_destination_reservation — pallets/subtensor/src/macros/dispatches.rs#L2800:
#[pallet::call_index(154)]
#[pallet::weight(
<T as crate::pallet::Config>::WeightInfo::release_own_coldkey_swap_destination_reservation()
)]
pub fn release_own_coldkey_swap_destination_reservation(
origin: OriginFor<T>,
) -> DispatchResult {
let dest = ensure_signed(origin)?;
Self::do_release_own_coldkey_swap_destination_reservation(&dest)?;
Ok(())
}Delegates to do_release_own_coldkey_swap_destination_reservation.
Every file is browsable under /code exactly as built into the runtime, or as plain text under /code/raw/<path> (index: /code/index.json).