bittensor.core.extrinsics.pallets.admin_utils

Contents

bittensor.core.extrinsics.pallets.admin_utils#

WARNING: This module contains administrative utilities that should ONLY be used for local development and testing purposes. These functions provide direct access to critical network parameters and should never be used in production environments as they can potentially disrupt network stability.

The AdminUtils module contains powerful administrative functions that can modify core network parameters. Improper use of these functions outside of development/testing contexts could have severe consequences for network operation.

Classes#

AdminUtils

Factory class for creating GenericCall objects for AdminUtils pallet functions.

Module Contents#

class bittensor.core.extrinsics.pallets.admin_utils.AdminUtils#

Bases: bittensor.core.extrinsics.pallets.base.CallBuilder

Factory class for creating GenericCall objects for AdminUtils pallet functions.

This class provides methods to create GenericCall instances for all AdminUtils pallet extrinsics.

Works with both sync (Subtensor) and async (AsyncSubtensor) instances. For async operations, pass an AsyncSubtensor instance and await the result.

Example

# Sync usage call = AdminUtils(subtensor).sudo_set_default_take(default_take=100) response = subtensor.sign_and_send_extrinsic(call=call, …)

# Async usage call = await AdminUtils(async_subtensor).sudo_set_default_take(default_take=100) response = await async_subtensor.sign_and_send_extrinsic(call=call, …)

schedule_grandpa_change(next_authorities, in_blocks, forced=None)#

Returns GenericCall instance for AdminUtils function schedule_grandpa_change.

A public interface for pallet_grandpa::Pallet::schedule_grandpa_change.

Schedule a change in the authorities.

The change will be applied at the end of execution of the block in_blocks after the current block. This value may be 0, in which case the change is applied at the end of the current block.

If the forced parameter is defined, this indicates that the current set has been synchronously determined to be offline and that after in_blocks the given change should be applied. The given block number indicates the median last finalized block number and it should be used as the canon block when starting the new grandpa voter.

No change should be signaled while any change is pending. Returns an error if a change is already pending.

Parameters:
  • next_authorities (list[tuple]) – The list of next authorities (AuthorityList).

  • in_blocks (int) – The number of blocks after which the change is applied.

  • forced (Optional[int]) – Optional block number for forced change.

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_activity_cutoff(netuid, activity_cutoff)#

Returns GenericCall instance for AdminUtils function sudo_set_activity_cutoff.

The extrinsic sets the activity cutoff for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the activity cutoff.

Parameters:
  • netuid (int) – The network identifier.

  • activity_cutoff (int) – The activity cutoff value (u16).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_adjustment_alpha(netuid, adjustment_alpha)#

Returns GenericCall instance for AdminUtils function sudo_set_adjustment_alpha.

The extrinsic sets the adjustment alpha for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the adjustment alpha.

Parameters:
  • netuid (int) – The network identifier.

  • adjustment_alpha (int) – The adjustment alpha value (u64).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_adjustment_interval(netuid, adjustment_interval)#

Returns GenericCall instance for AdminUtils function sudo_set_adjustment_interval.

The extrinsic sets the adjustment interval for a subnet. It is only callable by the root account, not changeable by the subnet owner. The extrinsic will call the Subtensor pallet to set the adjustment interval.

Parameters:
  • netuid (int) – The network identifier.

  • adjustment_interval (int) – The adjustment interval (u16).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_admin_freeze_window(window)#

Returns GenericCall instance for AdminUtils function sudo_set_admin_freeze_window.

Sets the admin freeze window length (in blocks) at the end of a tempo. Only callable by root.

Parameters:

window (int) – The admin freeze window length in blocks (u16).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_alpha_sigmoid_steepness(netuid, steepness)#

Returns GenericCall instance for AdminUtils function sudo_set_alpha_sigmoid_steepness.

Sets the Steepness for the alpha sigmoid function.

Parameters:
  • netuid (int) – The unique identifier for the subnet.

  • steepness (int) – The Steepness for the alpha sigmoid function. (range is 0-int16::MAX, negative values are reserved for future use).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_alpha_values(netuid, alpha_low, alpha_high)#

Returns GenericCall instance for AdminUtils function sudo_set_alpha_values.

Sets values for liquid alpha.

Parameters:
  • netuid (int) – The network identifier.

  • alpha_low (int) – The low alpha value (u16).

  • alpha_high (int) – The high alpha value (u16).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_bonds_moving_average(netuid, bonds_moving_average)#

Returns GenericCall instance for AdminUtils function sudo_set_bonds_moving_average.

The extrinsic sets the bonds moving average for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the bonds moving average.

Parameters:
  • netuid (int) – The network identifier.

  • bonds_moving_average (int) – The bonds moving average value (u64).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_bonds_penalty(netuid, bonds_penalty)#

Returns GenericCall instance for AdminUtils function sudo_set_bonds_penalty.

The extrinsic sets the bonds penalty for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the bonds penalty.

Parameters:
  • netuid (int) – The network identifier.

  • bonds_penalty (int) – The bonds penalty value (u16).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_bonds_reset_enabled(netuid, enabled)#

Returns GenericCall instance for AdminUtils function sudo_set_bonds_reset_enabled.

Enables or disables Bonds Reset for a given subnet.

Parameters:
  • netuid (int) – The unique identifier for the subnet.

  • enabled (bool) – A boolean flag to enable or disable Bonds Reset.

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_ck_burn(burn)#

Returns GenericCall instance for AdminUtils function sudo_set_ck_burn.

Sets the childkey burn for a subnet. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the childkey burn.

Parameters:

burn (int) – The childkey burn value (u64).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_coldkey_swap_schedule_duration(duration)#

Returns GenericCall instance for AdminUtils function sudo_set_coldkey_swap_schedule_duration.

Sets the duration of the coldkey swap schedule.

This extrinsic allows the root account to set the duration for the coldkey swap schedule. The coldkey swap schedule determines how long it takes for a coldkey swap operation to complete.

Parameters:

duration (int) – The new duration for the coldkey swap schedule, in number of blocks.

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_commit_reveal_version(version)#

Returns GenericCall instance for AdminUtils function sudo_set_commit_reveal_version.

Sets the commit-reveal weights version for all subnets.

Parameters:

version (int) – The commit-reveal weights version (u16).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_commit_reveal_weights_enabled(netuid, enabled)#

Returns GenericCall instance for AdminUtils function sudo_set_commit_reveal_weights_enabled.

The extrinsic enabled/disables commit/reaveal for a given subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the value.

Parameters:
  • netuid (int) – The network identifier.

  • enabled (bool) – Whether commit/reveal weights is enabled (bool).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_commit_reveal_weights_interval(netuid, interval)#

Returns GenericCall instance for AdminUtils function sudo_set_commit_reveal_weights_interval.

Sets the commit-reveal weights periods for a specific subnet.

This extrinsic allows the subnet owner or root account to set the duration (in epochs) during which committed weights must be revealed. The commit-reveal mechanism ensures that users commit weights in advance and reveal them only within a specified period.

Parameters:
  • netuid (int) – The unique identifier of the subnet for which the periods are being set.

  • interval (int) – The number of epochs that define the commit-reveal period.

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_default_take(default_take)#

Returns GenericCall instance for AdminUtils function sudo_set_default_take.

The extrinsic sets the default take for the network. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the default take.

Parameters:

default_take (int) – The default take value (u16).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_difficulty(netuid, difficulty)#

Returns GenericCall instance for AdminUtils function sudo_set_difficulty.

The extrinsic sets the difficulty for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the difficulty.

Parameters:
  • netuid (int) – The network identifier.

  • difficulty (int) – The difficulty value (u64).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_dissolve_network_schedule_duration(duration)#

Returns GenericCall instance for AdminUtils function sudo_set_dissolve_network_schedule_duration.

Sets the duration of the dissolve network schedule.

This extrinsic allows the root account to set the duration for the dissolve network schedule. The dissolve network schedule determines how long it takes for a network dissolution operation to complete.

Parameters:

duration (int) – The new duration for the dissolve network schedule, in number of blocks.

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_ema_price_halving_period(netuid, ema_halving)#

Returns GenericCall instance for AdminUtils function sudo_set_ema_price_halving_period.

Sets the number of blocks for EMA price to halve.

Parameters:
  • netuid (int) – The unique identifier for the subnet.

  • ema_halving (int) – Number of blocks for EMA price to halve.

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_evm_chain_id(chain_id)#

Returns GenericCall instance for AdminUtils function sudo_set_evm_chain_id.

Sets the EVM ChainID.

Parameters:

chain_id (int) – The u64 chain ID.

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_immunity_period(netuid, immunity_period)#

Returns GenericCall instance for AdminUtils function sudo_set_immunity_period.

The extrinsic sets the immunity period for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the immunity period.

Parameters:
  • netuid (int) – The network identifier.

  • immunity_period (int) – The immunity period (u16).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_kappa(netuid, kappa)#

Returns GenericCall instance for AdminUtils function sudo_set_kappa.

The extrinsic sets the kappa for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the kappa.

Parameters:
  • netuid (int) – The network identifier.

  • kappa (int) – The kappa value (u16).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_liquid_alpha_enabled(netuid, enabled)#

Returns GenericCall instance for AdminUtils function sudo_set_liquid_alpha_enabled.

Enables or disables Liquid Alpha for a given subnet.

Parameters:
  • netuid (int) – The unique identifier for the subnet.

  • enabled (bool) – A boolean flag to enable or disable Liquid Alpha.

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_lock_reduction_interval(interval)#

Returns GenericCall instance for AdminUtils function sudo_set_lock_reduction_interval.

The extrinsic sets the lock reduction interval for the network. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the lock reduction interval.

Parameters:

interval (int) – The lock reduction interval (u64).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_max_allowed_uids(netuid, max_allowed_uids)#

Returns GenericCall instance for AdminUtils function sudo_set_max_allowed_uids.

The extrinsic sets the maximum allowed UIDs for a subnet. It is only callable by the root account and subnet owner. The extrinsic will call the Subtensor pallet to set the maximum allowed UIDs for a subnet.

Parameters:
  • netuid (int) – The network identifier.

  • max_allowed_uids (int) – The maximum allowed UIDs (u16).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_max_allowed_validators(netuid, max_allowed_validators)#

Returns GenericCall instance for AdminUtils function sudo_set_max_allowed_validators.

The extrinsic sets the maximum allowed validators for a subnet. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the maximum allowed validators.

Parameters:
  • netuid (int) – The network identifier.

  • max_allowed_validators (int) – The maximum allowed validators (u16).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_max_burn(netuid, max_burn)#

Returns GenericCall instance for AdminUtils function sudo_set_max_burn.

The extrinsic sets the maximum burn for a subnet. It is only callable by root and subnet owner. The extrinsic will call the Subtensor pallet to set the maximum burn.

Parameters:
  • netuid (int) – The network identifier.

  • max_burn (int) – The maximum burn value in RAO (TaoCurrency).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_max_difficulty(netuid, max_difficulty)#

Returns GenericCall instance for AdminUtils function sudo_set_max_difficulty.

The extrinsic sets the maximum difficulty for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the maximum difficulty.

Parameters:
  • netuid (int) – The network identifier.

  • max_difficulty (int) – The maximum difficulty value (u64).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_max_registrations_per_block(netuid, max_registrations_per_block)#

Returns GenericCall instance for AdminUtils function sudo_set_max_registrations_per_block.

The extrinsic sets the maximum registrations per block for a subnet. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the maximum registrations per block.

Parameters:
  • netuid (int) – The network identifier.

  • max_registrations_per_block (int) – The maximum registrations per block (u16).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_mechanism_count(netuid, mechanism_count)#

Returns GenericCall instance for AdminUtils function sudo_set_mechanism_count.

Sets the desired number of mechanisms in a subnet.

Parameters:
  • netuid (int) – The network identifier.

  • mechanism_count (int) – The desired number of mechanisms (MechId).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_mechanism_emission_split(netuid, maybe_split=None)#

Returns GenericCall instance for AdminUtils function sudo_set_mechanism_emission_split.

Sets the emission split between mechanisms in a subnet.

Parameters:
  • netuid (int) – The network identifier.

  • maybe_split (Optional[list[int]]) – Optional list of emission split values (Option<Vec<u16>>).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_min_allowed_uids(netuid, min_allowed_uids)#

Returns GenericCall instance for AdminUtils function sudo_set_min_allowed_uids.

The extrinsic sets the minimum allowed UIDs for a subnet. It is only callable by the root account.

Parameters:
  • netuid (int) – The network identifier.

  • min_allowed_uids (int) – The minimum allowed UIDs (u16).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_min_allowed_weights(netuid, min_allowed_weights)#

Returns GenericCall instance for AdminUtils function sudo_set_min_allowed_weights.

The extrinsic sets the minimum allowed weights for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the minimum allowed weights.

Parameters:
  • netuid (int) – The network identifier.

  • min_allowed_weights (int) – The minimum allowed weights (u16).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_min_burn(netuid, min_burn)#

Returns GenericCall instance for AdminUtils function sudo_set_min_burn.

The extrinsic sets the minimum burn for a subnet. It is only callable by root and subnet owner. The extrinsic will call the Subtensor pallet to set the minimum burn.

Parameters:
  • netuid (int) – The network identifier.

  • min_burn (int) – The minimum burn value in RAO (TaoCurrency).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_min_delegate_take(take)#

Returns GenericCall instance for AdminUtils function sudo_set_min_delegate_take.

The extrinsic sets the minimum delegate take. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the minimum delegate take.

Parameters:

take (int) – The minimum delegate take value (u16).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_min_difficulty(netuid, min_difficulty)#

Returns GenericCall instance for AdminUtils function sudo_set_min_difficulty.

The extrinsic sets the minimum difficulty for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the minimum difficulty.

Parameters:
  • netuid (int) – The network identifier.

  • min_difficulty (int) – The minimum difficulty value (u64).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_network_immunity_period(immunity_period)#

Returns GenericCall instance for AdminUtils function sudo_set_network_immunity_period.

The extrinsic sets the immunity period for the network. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the immunity period for the network.

Parameters:

immunity_period (int) – The immunity period (u64).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_network_min_lock_cost(lock_cost)#

Returns GenericCall instance for AdminUtils function sudo_set_network_min_lock_cost.

The extrinsic sets the min lock cost for the network. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the min lock cost for the network.

Parameters:

lock_cost (int) – The lock cost value in RAO (TaoCurrency).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_network_pow_registration_allowed(netuid, registration_allowed)#

Returns GenericCall instance for AdminUtils function sudo_set_network_pow_registration_allowed.

The extrinsic sets the network PoW registration allowed for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the network PoW registration allowed.

Parameters:
  • netuid (int) – The network identifier.

  • registration_allowed (bool) – Whether PoW registration is allowed (bool).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_network_rate_limit(rate_limit)#

Returns GenericCall instance for AdminUtils function sudo_set_network_rate_limit.

The extrinsic sets the network rate limit for the network. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the network rate limit.

Parameters:

rate_limit (int) – The network rate limit (u64).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_network_registration_allowed(netuid, registration_allowed)#

Returns GenericCall instance for AdminUtils function sudo_set_network_registration_allowed.

The extrinsic sets the network registration allowed for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the network registration allowed.

Parameters:
  • netuid (int) – The network identifier.

  • registration_allowed (bool) – Whether registration is allowed (bool).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_nominator_min_required_stake(min_stake)#

Returns GenericCall instance for AdminUtils function sudo_set_nominator_min_required_stake.

The extrinsic sets the minimum stake required for nominators. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the minimum stake required for nominators.

Parameters:

min_stake (int) – The minimum stake required for nominators (u64).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_owner_hparam_rate_limit(epochs)#

Returns GenericCall instance for AdminUtils function sudo_set_owner_hparam_rate_limit.

Sets the owner hyperparameter rate limit in epochs (global multiplier). Only callable by root.

Parameters:

epochs (int) – The owner hyperparameter rate limit in epochs (u16).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_owner_immune_neuron_limit(netuid, immune_neurons)#

Returns GenericCall instance for AdminUtils function sudo_set_owner_immune_neuron_limit.

Sets the number of immune owner neurons.

Parameters:
  • netuid (int) – The network identifier.

  • immune_neurons (int) – The number of immune owner neurons (u16).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_rao_recycled(netuid, rao_recycled)#

Returns GenericCall instance for AdminUtils function sudo_set_rao_recycled.

The extrinsic sets the recycled RAO for a subnet. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the recycled RAO.

Parameters:
  • netuid (int) – The network identifier.

  • rao_recycled (int) – The recycled RAO value in RAO (TaoCurrency).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_recycle_or_burn(netuid, recycle_or_burn)#

Returns GenericCall instance for AdminUtils function sudo_set_recycle_or_burn.

Set the behaviour of the “burn” UID(s) for a given subnet. If set to Burn, the miner emission sent to the burn UID(s) will be burned. If set to Recycle, the miner emission sent to the burn UID(s) will be recycled.

Parameters:
  • netuid (int) – The unique identifier for the subnet.

  • recycle_or_burn (str) – The desired behaviour of the “burn” UID(s) for the subnet.

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_rho(netuid, rho)#

Returns GenericCall instance for AdminUtils function sudo_set_rho.

The extrinsic sets the rho for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the rho.

Parameters:
  • netuid (int) – The network identifier.

  • rho (int) – The rho value (u16).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_serving_rate_limit(netuid, serving_rate_limit)#

Returns GenericCall instance for AdminUtils function sudo_set_serving_rate_limit.

The extrinsic sets the serving rate limit for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the serving rate limit.

Parameters:
  • netuid (int) – The network identifier.

  • serving_rate_limit (int) – The serving rate limit (u64).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_sn_owner_hotkey(netuid, hotkey)#

Returns GenericCall instance for AdminUtils function sudo_set_sn_owner_hotkey.

Sets or updates the hotkey account associated with the owner of a specific subnet.

This function allows either the root origin or the current subnet owner to set or update the hotkey for a given subnet. The subnet must already exist. To prevent abuse, the call is rate-limited to once per configured interval (default: one week) per subnet.

Parameters:
  • netuid (int) – The unique identifier of the subnet whose owner hotkey is being set.

  • hotkey (str) – The new hotkey account to associate with the subnet owner.

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_stake_threshold(min_stake)#

Returns GenericCall instance for AdminUtils function sudo_set_stake_threshold.

The extrinsic sets the weights min stake. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the weights min stake.

Parameters:

min_stake (int) – The minimum stake value (u64).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_subnet_limit(max_subnets)#

Returns GenericCall instance for AdminUtils function sudo_set_subnet_limit.

The extrinsic sets the subnet limit for the network. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the subnet limit.

Parameters:

max_subnets (int) – The maximum number of subnets (u16).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_subnet_moving_alpha(alpha)#

Returns GenericCall instance for AdminUtils function sudo_set_subnet_moving_alpha.

Sets the new moving alpha value for the SubnetMovingAlpha.

Parameters:

alpha (dict) – The new moving alpha value (I96F32).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_subnet_owner_cut(subnet_owner_cut)#

Returns GenericCall instance for AdminUtils function sudo_set_subnet_owner_cut.

The extrinsic sets the subnet owner cut for a subnet. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the subnet owner cut.

Parameters:

subnet_owner_cut (int) – The subnet owner cut value (u16).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_subnet_owner_hotkey(netuid, hotkey)#

Returns GenericCall instance for AdminUtils function sudo_set_subnet_owner_hotkey.

Change the SubnetOwnerHotkey for a given subnet.

Parameters:
  • netuid (int) – The unique identifier for the subnet.

  • hotkey (str) – The new hotkey for the subnet owner.

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_subtoken_enabled(netuid, subtoken_enabled)#

Returns GenericCall instance for AdminUtils function sudo_set_subtoken_enabled.

Enables or disables subtoken trading for a given subnet.

Parameters:
  • netuid (int) – The unique identifier of the subnet.

  • subtoken_enabled (bool) – A boolean indicating whether subtoken trading should be enabled or disabled.

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_tao_flow_cutoff(flow_cutoff)#

Returns GenericCall instance for AdminUtils function sudo_set_tao_flow_cutoff.

Sets TAO flow cutoff value (A).

Parameters:

flow_cutoff (dict) – The TAO flow cutoff value (I64F64).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_tao_flow_normalization_exponent(exponent)#

Returns GenericCall instance for AdminUtils function sudo_set_tao_flow_normalization_exponent.

Sets TAO flow normalization exponent (p).

Parameters:

exponent (dict) – The TAO flow normalization exponent (U64F64).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_tao_flow_smoothing_factor(smoothing_factor)#

Returns GenericCall instance for AdminUtils function sudo_set_tao_flow_smoothing_factor.

Sets TAO flow smoothing factor (alpha).

Parameters:

smoothing_factor (int) – The TAO flow smoothing factor (u64).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_target_registrations_per_interval(netuid, target_registrations_per_interval)#

Returns GenericCall instance for AdminUtils function sudo_set_target_registrations_per_interval.

The extrinsic sets the target registrations per interval for a subnet. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the target registrations per interval.

Parameters:
  • netuid (int) – The network identifier.

  • target_registrations_per_interval (int) – The target registrations per interval (u16).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_tempo(netuid, tempo)#

Returns GenericCall instance for AdminUtils function sudo_set_tempo.

The extrinsic sets the tempo for a subnet. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the tempo.

Parameters:
  • netuid (int) – The network identifier.

  • tempo (int) – The tempo value (u16).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_toggle_transfer(netuid, toggle)#

Returns GenericCall instance for AdminUtils function sudo_set_toggle_transfer.

Enable or disable atomic alpha transfers for a given subnet.

Parameters:
  • netuid (int) – The unique identifier for the subnet.

  • toggle (bool) – A boolean flag to enable or disable Liquid Alpha.

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_total_issuance(total_issuance)#

Returns GenericCall instance for AdminUtils function sudo_set_total_issuance.

The extrinsic sets the total issuance for the network. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the issuance for the network.

Parameters:

total_issuance (int) – The total issuance value in RAO (TaoCurrency).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_tx_delegate_take_rate_limit(tx_rate_limit)#

Returns GenericCall instance for AdminUtils function sudo_set_tx_delegate_take_rate_limit.

The extrinsic sets the rate limit for delegate take transactions. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the rate limit for delegate take transactions.

Parameters:

tx_rate_limit (int) – The transaction rate limit (u64).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_tx_rate_limit(tx_rate_limit)#

Returns GenericCall instance for AdminUtils function sudo_set_tx_rate_limit.

The extrinsic sets the transaction rate limit for the network. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the transaction rate limit.

Parameters:

tx_rate_limit (int) – The transaction rate limit (u64).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_weights_set_rate_limit(netuid, weights_set_rate_limit)#

Returns GenericCall instance for AdminUtils function sudo_set_weights_set_rate_limit.

The extrinsic sets the weights set rate limit for a subnet. It is only callable by the root account. The extrinsic will call the Subtensor pallet to set the weights set rate limit.

Parameters:
  • netuid (int) – The network identifier.

  • weights_set_rate_limit (int) – The weights set rate limit (u64).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_weights_version_key(netuid, weights_version_key)#

Returns GenericCall instance for AdminUtils function sudo_set_weights_version_key.

The extrinsic sets the weights version key for a subnet. It is only callable by the root account or subnet owner. The extrinsic will call the Subtensor pallet to set the weights version key.

Parameters:
  • netuid (int) – The network identifier.

  • weights_version_key (int) – The weights version key (u64).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_set_yuma3_enabled(netuid, enabled)#

Returns GenericCall instance for AdminUtils function sudo_set_yuma3_enabled.

Enables or disables Yuma3 for a given subnet.

Parameters:
  • netuid (int) – The unique identifier for the subnet.

  • enabled (bool) – A boolean flag to enable or disable Yuma3.

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_toggle_evm_precompile(precompile_id, enabled)#

Returns GenericCall instance for AdminUtils function sudo_toggle_evm_precompile.

Toggles the enablement of an EVM precompile.

Parameters:
  • precompile_id (str) – The identifier of the EVM precompile to toggle.

  • enabled (bool) – The new enablement state of the precompile.

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

sudo_trim_to_max_allowed_uids(netuid, max_n)#

Returns GenericCall instance for AdminUtils function sudo_trim_to_max_allowed_uids.

Trims the maximum number of UIDs for a subnet.

The trimming is done by sorting the UIDs by emission descending and then trimming the lowest emitters while preserving temporally and owner immune UIDs. The UIDs are then compressed to the left and storage is migrated to the new compressed UIDs.

Parameters:
  • netuid (int) – The network identifier.

  • max_n (int) – The maximum number of UIDs (u16).

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call

swap_authorities(new_authorities)#

Returns GenericCall instance for AdminUtils function swap_authorities.

The extrinsic sets the new authorities for Aura consensus. It is only callable by the root account. The extrinsic will call the Aura pallet to change the authorities.

Parameters:

new_authorities (list[str]) – List of new authority identifiers.

Returns:

GenericCall instance.

Return type:

bittensor.core.extrinsics.pallets.base.Call