Skip to content

AdminUtils


Calls


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.

Attributes

Name Type
netuid u16
activity_cutoff u16

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_activity_cutoff', {
    'activity_cutoff': 'u16',
    'netuid': 'u16',
}
)

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.

Attributes

Name Type
netuid u16
adjustment_alpha u64

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_adjustment_alpha', {
    'adjustment_alpha': 'u64',
    'netuid': 'u16',
}
)

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.

Attributes

Name Type
netuid u16
adjustment_interval u16

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_adjustment_interval', {
    'adjustment_interval': 'u16',
    'netuid': 'u16',
}
)

sudo_set_alpha_values

Sets values for liquid alpha

Attributes

Name Type
netuid u16
alpha_low u16
alpha_high u16

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_alpha_values', {
    'alpha_high': 'u16',
    'alpha_low': 'u16',
    'netuid': 'u16',
}
)

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.

Attributes

Name Type
netuid u16
bonds_moving_average u64

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_bonds_moving_average', {
    'bonds_moving_average': 'u64',
    'netuid': 'u16',
}
)

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.

Attributes

Name Type
netuid u16
enabled bool

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_commit_reveal_weights_enabled', {'enabled': 'bool', 'netuid': 'u16'}
)

sudo_set_commit_reveal_weights_interval

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

Attributes

Name Type
netuid u16
interval u64

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_commit_reveal_weights_interval', {'interval': 'u64', 'netuid': 'u16'}
)

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.

Attributes

Name Type
default_take u16

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_default_take', {'default_take': 'u16'}
)

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.

Attributes

Name Type
netuid u16
difficulty u64

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_difficulty', {'difficulty': 'u64', 'netuid': 'u16'}
)

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.

Attributes

Name Type
netuid u16
immunity_period u16

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_immunity_period', {
    'immunity_period': 'u16',
    'netuid': 'u16',
}
)

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.

Attributes

Name Type
netuid u16
kappa u16

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_kappa', {'kappa': 'u16', 'netuid': 'u16'}
)

sudo_set_liquid_alpha_enabled

Enables or disables Liquid Alpha for a given subnet.

# Parameters - origin: The origin of the call, which must be the root account or subnet owner. - netuid: The unique identifier for the subnet. - enabled: A boolean flag to enable or disable Liquid Alpha.

# Weight This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees.

Attributes

Name Type
netuid u16
enabled bool

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_liquid_alpha_enabled', {'enabled': 'bool', 'netuid': 'u16'}
)

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.

Attributes

Name Type
interval u64

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_lock_reduction_interval', {'interval': 'u64'}
)

sudo_set_max_allowed_uids

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

Attributes

Name Type
netuid u16
max_allowed_uids u16

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_max_allowed_uids', {
    'max_allowed_uids': 'u16',
    'netuid': 'u16',
}
)

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.

Attributes

Name Type
netuid u16
max_allowed_validators u16

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_max_allowed_validators', {
    'max_allowed_validators': 'u16',
    'netuid': 'u16',
}
)

sudo_set_max_burn

The extrinsic sets the maximum burn 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 burn.

Attributes

Name Type
netuid u16
max_burn u64

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_max_burn', {'max_burn': 'u64', 'netuid': 'u16'}
)

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.

Attributes

Name Type
netuid u16
max_difficulty u64

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_max_difficulty', {
    'max_difficulty': 'u64',
    'netuid': 'u16',
}
)

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.

Attributes

Name Type
netuid u16
max_registrations_per_block u16

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_max_registrations_per_block', {
    'max_registrations_per_block': 'u16',
    'netuid': 'u16',
}
)

sudo_set_max_weight_limit

The extrinsic sets the adjustment beta 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 beta.

Attributes

Name Type
netuid u16
max_weight_limit u16

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_max_weight_limit', {
    'max_weight_limit': 'u16',
    'netuid': 'u16',
}
)

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.

Attributes

Name Type
netuid u16
min_allowed_weights u16

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_min_allowed_weights', {
    'min_allowed_weights': 'u16',
    'netuid': 'u16',
}
)

sudo_set_min_burn

The extrinsic sets the minimum burn 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 burn.

Attributes

Name Type
netuid u16
min_burn u64

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_min_burn', {'min_burn': 'u64', 'netuid': 'u16'}
)

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.

Attributes

Name Type
take u16

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_min_delegate_take', {'take': 'u16'}
)

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.

Attributes

Name Type
netuid u16
min_difficulty u64

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_min_difficulty', {
    'min_difficulty': 'u64',
    'netuid': 'u16',
}
)

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.

Attributes

Name Type
immunity_period u64

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_network_immunity_period', {'immunity_period': 'u64'}
)

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.

Attributes

Name Type
lock_cost u64

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_network_min_lock_cost', {'lock_cost': 'u64'}
)

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.

Attributes

Name Type
netuid u16
registration_allowed bool

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_network_pow_registration_allowed', {
    'netuid': 'u16',
    'registration_allowed': 'bool',
}
)

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.

Attributes

Name Type
rate_limit u64

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_network_rate_limit', {'rate_limit': 'u64'}
)

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.

Attributes

Name Type
netuid u16
registration_allowed bool

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_network_registration_allowed', {
    'netuid': 'u16',
    'registration_allowed': 'bool',
}
)

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.

Attributes

Name Type
min_stake u64

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_nominator_min_required_stake', {'min_stake': 'u64'}
)

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.

Attributes

Name Type
netuid u16
rao_recycled u64

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_rao_recycled', {
    'netuid': 'u16',
    'rao_recycled': 'u64',
}
)

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.

Attributes

Name Type
netuid u16
rho u16

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_rho', {'netuid': 'u16', 'rho': 'u16'}
)

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.

Attributes

Name Type
netuid u16
serving_rate_limit u64

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_serving_rate_limit', {
    'netuid': 'u16',
    'serving_rate_limit': 'u64',
}
)

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.

Attributes

Name Type
max_subnets u16

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_subnet_limit', {'max_subnets': 'u16'}
)

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.

Attributes

Name Type
subnet_owner_cut u16

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_subnet_owner_cut', {'subnet_owner_cut': 'u16'}
)

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.

Attributes

Name Type
netuid u16
target_registrations_per_interval u16

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_target_registrations_per_interval', {
    'netuid': 'u16',
    'target_registrations_per_interval': 'u16',
}
)

sudo_set_target_stakes_per_interval

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

Attributes

Name Type
target_stakes_per_interval u64

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_target_stakes_per_interval', {'target_stakes_per_interval': 'u64'}
)

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.

Attributes

Name Type
netuid u16
tempo u16

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_tempo', {'netuid': 'u16', 'tempo': 'u16'}
)

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.

Attributes

Name Type
total_issuance u64

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_total_issuance', {'total_issuance': 'u64'}
)

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.

Attributes

Name Type
tx_rate_limit u64

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_tx_delegate_take_rate_limit', {'tx_rate_limit': 'u64'}
)

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.

Attributes

Name Type
tx_rate_limit u64

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_tx_rate_limit', {'tx_rate_limit': 'u64'}
)

sudo_set_weights_min_stake

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.

Attributes

Name Type
min_stake u64

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_weights_min_stake', {'min_stake': 'u64'}
)

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 or subnet owner. The extrinsic will call the Subtensor pallet to set the weights set rate limit.

Attributes

Name Type
netuid u16
weights_set_rate_limit u64

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_weights_set_rate_limit', {
    'netuid': 'u16',
    'weights_set_rate_limit': 'u64',
}
)

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.

Attributes

Name Type
netuid u16
weights_version_key u64

Python

call = substrate.compose_call(
    'AdminUtils', 'sudo_set_weights_version_key', {
    'netuid': 'u16',
    'weights_version_key': 'u64',
}
)

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.

Attributes

Name Type
new_authorities BoundedVec<T::AuthorityId, T::MaxAuthorities>

Python

call = substrate.compose_call(
    'AdminUtils', 'swap_authorities', {'new_authorities': ['[u8; 32]']}
)

Errors


MaxAllowedUIdsLessThanCurrentUIds

The maximum number of subnet validators must be more than the current number of UIDs already in the subnet.


MaxValidatorsLargerThanMaxUIds

The maximum number of subnet validators must be less than the maximum number of allowed UIDs in the subnet.


SubnetDoesNotExist

The subnet does not exist, check the netuid parameter