AdminUtils::Call

Variant 308 v393

pallet_admin_utils::pallet::Call

Dispatchable functions allows users to interact with the pallet and invoke state changes.

About This Type

Call enum for the Call pallet.

Contains all dispatchable functions (extrinsics) for the Call pallet. Each variant represents a different callable function with its parameters.

Variants (74)

IndexNameFieldsDocs
0swap_authorities
new_authorities: BoundedVec
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.
1sudo_set_default_take
default_take: u16
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.
2sudo_set_tx_rate_limit
tx_rate_limit: u64
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.
3sudo_set_serving_rate_limit
netuid: u16
serving_rate_limit: u64
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.
4sudo_set_min_difficulty
netuid: u16
min_difficulty: u64
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.
5sudo_set_max_difficulty
netuid: u16
max_difficulty: u64
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.
6sudo_set_weights_version_key
netuid: u16
weights_version_key: u64
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.
7sudo_set_weights_set_rate_limit
netuid: u16
weights_set_rate_limit: u64
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.
8sudo_set_adjustment_interval
netuid: u16
adjustment_interval: u16
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.
9sudo_set_adjustment_alpha
netuid: u16
adjustment_alpha: u64
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.
13sudo_set_immunity_period
netuid: u16
immunity_period: u16
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.
14sudo_set_min_allowed_weights
netuid: u16
min_allowed_weights: u16
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.
15sudo_set_max_allowed_uids
netuid: u16
max_allowed_uids: u16
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.
16sudo_set_kappa
netuid: u16
kappa: u16
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.
17sudo_set_rho
netuid: u16
rho: u16
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.
18sudo_set_activity_cutoff
netuid: u16
activity_cutoff: u16
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.
19sudo_set_network_registration_allowed
netuid: u16
registration_allowed: bool
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.
20sudo_set_network_pow_registration_allowed
netuid: u16
registration_allowed: bool
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.
21sudo_set_target_registrations_per_interval
netuid: u16
target_registrations_per_interval: u16
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.
22sudo_set_min_burn
netuid: u16
min_burn: u64
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.
23sudo_set_max_burn
netuid: u16
max_burn: u64
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.
24sudo_set_difficulty
netuid: u16
difficulty: u64
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.
25sudo_set_max_allowed_validators
netuid: u16
max_allowed_validators: u16
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.
26sudo_set_bonds_moving_average
netuid: u16
bonds_moving_average: u64
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.
60sudo_set_bonds_penalty
netuid: u16
bonds_penalty: u16
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.
27sudo_set_max_registrations_per_block
netuid: u16
max_registrations_per_block: u16
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.
28sudo_set_subnet_owner_cut
subnet_owner_cut: u16
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.
29sudo_set_network_rate_limit
rate_limit: u64
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.
30sudo_set_tempo
netuid: u16
tempo: u16
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.
33sudo_set_total_issuance
total_issuance: u64
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.
35sudo_set_network_immunity_period
immunity_period: u64
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.
36sudo_set_network_min_lock_cost
lock_cost: u64
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.
37sudo_set_subnet_limit
max_subnets: u16
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.
38sudo_set_lock_reduction_interval
interval: u64
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.
39sudo_set_rao_recycled
netuid: u16
rao_recycled: u64
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.
42sudo_set_stake_threshold
min_stake: u64
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.
43sudo_set_nominator_min_required_stake
min_stake: u64
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.
45sudo_set_tx_delegate_take_rate_limit
tx_rate_limit: u64
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.
46sudo_set_min_delegate_take
take: u16
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.
49sudo_set_commit_reveal_weights_enabled
netuid: u16
enabled: bool
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.
50sudo_set_liquid_alpha_enabled
netuid: u16
enabled: bool
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.
51sudo_set_alpha_values
netuid: u16
alpha_low: u16
alpha_high: u16
Sets values for liquid alpha
55sudo_set_dissolve_network_schedule_duration
duration: u32
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. # Arguments * `origin` - The origin of the call, which must be the root account. * `duration` - The new duration for the dissolve network schedule, in number of blocks. # Errors * `BadOrigin` - If the caller is not the root account. # Weight Weight is handled by the `#[pallet::weight]` attribute.
57sudo_set_commit_reveal_weights_interval
netuid: u16
interval: u64
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. # Arguments * `origin` - The origin of the call, which must be the subnet owner or the root account. * `netuid` - The unique identifier of the subnet for which the periods are being set. * `periods` - The number of epochs that define the commit-reveal period. # Errors * `BadOrigin` - If the caller is neither the subnet owner nor the root account. * `SubnetDoesNotExist` - If the specified subnet does not exist. # Weight Weight is handled by the `#[pallet::weight]` attribute.
58sudo_set_evm_chain_id
chain_id: u64
Sets the EVM ChainID. # Arguments * `origin` - The origin of the call, which must be the subnet owner or the root account. * `chainId` - The u64 chain ID # Errors * `BadOrigin` - If the caller is neither the subnet owner nor the root account. # Weight Weight is handled by the `#[pallet::weight]` attribute.
59schedule_grandpa_change
next_authorities: Vec<(Public, u64)>
in_blocks: u32
forced: Option
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.
61sudo_set_toggle_transfer
netuid: u16
toggle: bool
Enable or disable atomic alpha transfers 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.
80sudo_set_recycle_or_burn
netuid: u16
recycle_or_burn: RecycleOrBurnEnum
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 - `origin`: The origin of the call, which must be the root account or subnet owner. - `netuid`: The unique identifier for the subnet. - `recycle_or_burn`: The desired behaviour of the "burn" UID(s) for the subnet.
62sudo_toggle_evm_precompile
precompile_id: PrecompileEnum
enabled: bool
Toggles the enablement of an EVM precompile. # Arguments * `origin` - The origin of the call, which must be the root account. * `precompile_id` - The identifier of the EVM precompile to toggle. * `enabled` - The new enablement state of the precompile. # Errors * `BadOrigin` - If the caller is not the root account. # Weight Weight is handled by the `#[pallet::weight]` attribute.
63sudo_set_subnet_moving_alpha
alpha: FixedI128
# Arguments * `origin` - The origin of the call, which must be the root account. * `alpha` - The new moving alpha value for the SubnetMovingAlpha. # Errors * `BadOrigin` - If the caller is not the root account. # Weight Weight is handled by the `#[pallet::weight]` attribute.
64sudo_set_subnet_owner_hotkey
netuid: u16
hotkey: AccountId
Change the SubnetOwnerHotkey for a given subnet. # Arguments * `origin` - The origin of the call, which must be the subnet owner. * `netuid` - The unique identifier for the subnet. * `hotkey` - The new hotkey for the subnet owner. # Errors * `BadOrigin` - If the caller is not the subnet owner or root account. # Weight Weight is handled by the `#[pallet::weight]` attribute.
65sudo_set_ema_price_halving_period
netuid: u16
ema_halving: u64
# Arguments * `origin` - The origin of the call, which must be the root account. * `ema_alpha_period` - Number of blocks for EMA price to halve # Errors * `BadOrigin` - If the caller is not the root account. # Weight Weight is handled by the `#[pallet::weight]` attribute.
68sudo_set_alpha_sigmoid_steepness
netuid: u16
steepness: i16
# Arguments * `origin` - The origin of the call, which must be the root account. * `netuid` - The unique identifier for the subnet. * `steepness` - The Steepness for the alpha sigmoid function. (range is 0-int16::MAX, negative values are reserved for future use) # Errors * `BadOrigin` - If the caller is not the root account. * `SubnetDoesNotExist` - If the specified subnet does not exist. * `NegativeSigmoidSteepness` - If the steepness is negative and the caller is root. # Weight Weight is handled by the `#[pallet::weight]` attribute.
69sudo_set_yuma3_enabled
netuid: u16
enabled: bool
Enables or disables Yuma3 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 Yuma3. # Weight This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees.
70sudo_set_bonds_reset_enabled
netuid: u16
enabled: bool
Enables or disables Bonds Reset 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 Bonds Reset. # Weight This function has a fixed weight of 0 and is classified as an operational transaction that does not incur any fees.
67sudo_set_sn_owner_hotkey
netuid: u16
hotkey: AccountId
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 - `origin`: The dispatch origin of the call. Must be either root or the current owner of the subnet. - `netuid`: The unique identifier of the subnet whose owner hotkey is being set. - `hotkey`: The new hotkey account to associate with the subnet owner. # Returns - `DispatchResult`: Returns `Ok(())` if the hotkey was successfully set, or an appropriate error otherwise. # Errors - `Error::SubnetNotExists`: If the specified subnet does not exist. - `Error::TxRateLimitExceeded`: If the function is called more frequently than the allowed rate limit. # Access Control Only callable by: - Root origin, or - The coldkey account that owns the subnet. # Storage - Updates [`SubnetOwnerHotkey`] for the given `netuid`. - Reads and updates [`LastRateLimitedBlock`] for rate-limiting. - Reads [`DefaultSetSNOwnerHotkeyRateLimit`] to determine the interval between allowed updates. # Rate Limiting This function is rate-limited to one call per subnet per interval (e.g., one week).
66sudo_set_subtoken_enabled
netuid: u16
subtoken_enabled: bool
Enables or disables subtoken trading for a given subnet. # Arguments * `origin` - The origin of the call, which must be the root account. * `netuid` - The unique identifier of the subnet. * `subtoken_enabled` - A boolean indicating whether subtoken trading should be enabled or disabled. # Errors * `BadOrigin` - If the caller is not the root account. # Weight Weight is handled by the `#[pallet::weight]` attribute.
71sudo_set_commit_reveal_version
version: u16
Sets the commit-reveal weights version for all subnets
72sudo_set_owner_immune_neuron_limit
netuid: u16
immune_neurons: u16
Sets the number of immune owner neurons
73sudo_set_ck_burn
burn: u64
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.
74sudo_set_admin_freeze_window
window: u16
Sets the admin freeze window length (in blocks) at the end of a tempo. Only callable by root.
75sudo_set_owner_hparam_rate_limit
epochs: u16
Sets the owner hyperparameter rate limit in epochs (global multiplier). Only callable by root.
76sudo_set_mechanism_count
netuid: u16
mechanism_count: u8
Sets the desired number of mechanisms in a subnet
77sudo_set_mechanism_emission_split
netuid: u16
maybe_split: Option
Sets the emission split between mechanisms in a subnet
78sudo_trim_to_max_allowed_uids
netuid: u16
max_n: u16
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.
79sudo_set_min_allowed_uids
netuid: u16
min_allowed_uids: u16
The extrinsic sets the minimum allowed UIDs for a subnet. It is only callable by the root account.
81sudo_set_tao_flow_cutoff
flow_cutoff: FixedI128
Sets TAO flow cutoff value (A)
82sudo_set_tao_flow_normalization_exponent
exponent: FixedU128
Sets TAO flow normalization exponent (p)
83sudo_set_tao_flow_smoothing_factor
smoothing_factor: u64
Sets TAO flow smoothing factor (alpha)
88sudo_set_max_mechanism_count
max_mechanism_count: u8
Sets the global maximum number of mechanisms in a subnet
84sudo_set_min_non_immune_uids
netuid: u16
min: u16
Sets the minimum number of non-immortal & non-immune UIDs that must remain in a subnet
85sudo_set_start_call_delay
delay: u64
Sets the delay before a subnet can call start
86sudo_set_coldkey_swap_announcement_delay
duration: u32
Sets the announcement delay for coldkey swap.
87sudo_set_coldkey_swap_reannouncement_delay
duration: u32
Sets the coldkey swap reannouncement delay.

SCALE Encoding

Rule
1-byte variant index followed by variant-specific field data. 74 possible variants.
Size
variable (1+ bytes)

Examples

swap_authorities = swap_authorities(new_authorities)
0x00<field0>
00 Variant index 0 = swap_authorities
field 0 new_authorities: BoundedVec
sudo_set_default_take = sudo_set_default_take(default_take)
0x01<field0>
01 Variant index 1 = sudo_set_default_take
field 0 default_take: u16
sudo_set_tx_rate_limit = sudo_set_tx_rate_limit(tx_rate_limit)
0x02<field0>
02 Variant index 2 = sudo_set_tx_rate_limit
field 0 tx_rate_limit: u64

Code Examples

import { TypeRegistry } from "@polkadot/types";

const registry = new TypeRegistry();

// Encode AdminUtils::Call — variant "swap_authorities"
const value = registry.createType("AdminUtils::Call", { swap_authorities: { new_authorities: 0 } });
console.log("Hex:", value.toHex());

Type Parameters

T

Referenced By (23)

and 3 more...

Also See

Type Information

Type ID
308
Kind
Variant
Path
pallet_admin_utils::pallet::Call
Runtime
v393