SubtensorModule::Error

Variant 246 v411

pallet_subtensor::pallet::Error

The `Error` enum of this pallet.

About This Type

Error enum for the Error pallet.

Contains all error types that the Error pallet can return when a call fails.

Variants (142)

IndexNameFieldsDocs
0RootNetworkDoesNotExistnoneThe root network does not exist.
1InvalidIpTypenoneThe user is trying to serve an axon which is not of type 4 (IPv4) or 6 (IPv6).
2InvalidIpAddressnoneAn invalid IP address is passed to the serve function.
3InvalidPortnoneAn invalid port is passed to the serve function.
4HotKeyNotRegisteredInSubNetnoneThe hotkey is not registered in subnet
5HotKeyAccountNotExistsnoneThe hotkey does not exists
6HotKeyNotRegisteredInNetworknoneThe hotkey is not registered in any subnet.
7NonAssociatedColdKeynoneRequest to stake, unstake or subscribe is made by a coldkey that is not associated with the hotkey account.
8NotEnoughStakenoneDEPRECATED: Stake amount to withdraw is zero. The caller does not have enought stake to perform this action.
9NotEnoughStakeToWithdrawnoneThe caller is requesting removing more stake than there exists in the staking account. See: "[remove_stake()]".
10NotEnoughStakeToSetWeightsnoneThe caller is requesting to set weights but the caller has less than minimum stake required to set weights (less than WeightsMinStake).
11NotEnoughStakeToSetChildkeysnoneThe parent hotkey doesn't have enough own stake to set childkeys.
12NotEnoughBalanceToStakenoneThe caller is requesting adding more stake than there exists in the coldkey account. See: "[add_stake()]"
13BalanceWithdrawalErrornoneThe caller is trying to add stake, but for some reason the requested amount could not be withdrawn from the coldkey account.
14ZeroBalanceAfterWithdrawnnoneUnsuccessfully withdraw, balance could be zero (can not make account exist) after withdrawal.
15NeuronNoValidatorPermitnoneThe caller is attempting to set non-self weights without being a permitted validator.
16WeightVecNotEqualSizenoneThe caller is attempting to set the weight keys and values but these vectors have different size.
17DuplicateUidsnoneThe caller is attempting to set weights with duplicate UIDs in the weight matrix.
18UidVecContainInvalidOnenoneThe caller is attempting to set weight to at least one UID that does not exist in the metagraph.
19WeightVecLengthIsLownoneThe dispatch is attempting to set weights on chain with fewer elements than are allowed.
20TooManyRegistrationsThisBlocknoneNumber of registrations in this block exceeds the allowed number (i.e., exceeds the subnet hyperparameter "max_regs_per_block").
21HotKeyAlreadyRegisteredInSubNetnoneThe caller is requesting registering a neuron which already exists in the active set.
22NewHotKeyIsSameWithOldnoneThe new hotkey is the same as old one
23NewHotKeyNotCleanForRootSwapnoneThe new hotkey has outstanding root claimable or non-zero root stake, so the root rate-book cannot be merged without misallocating dividends.
24InvalidWorkBlocknoneThe supplied PoW hash block is in the future or negative.
25InvalidDifficultynoneThe supplied PoW hash block does not meet the network difficulty.
26InvalidSealnoneThe supplied PoW hash seal does not match the supplied work.
27MaxWeightExceedednoneThe dispatch is attempting to set weights on chain with weight value exceeding the configured max weight limit (currently `u16::MAX`).
28HotKeyAlreadyDelegatenoneThe hotkey is attempting to become a delegate when the hotkey is already a delegate.
29SettingWeightsTooFastnoneA transactor exceeded the rate limit for setting weights.
30IncorrectWeightVersionKeynoneA validator is attempting to set weights from a validator with incorrect weight version.
31ServingRateLimitExceedednoneAn axon or prometheus serving exceeded the rate limit for a registered neuron.
32UidsLengthExceedUidsInSubNetnoneThe caller is attempting to set weights with more UIDs than allowed.
33NetworkTxRateLimitExceedednoneA transactor exceeded the rate limit for add network transaction.
34DelegateTxRateLimitExceedednoneA transactor exceeded the rate limit for delegate transaction.
35HotKeySetTxRateLimitExceedednoneA transactor exceeded the rate limit for setting or swapping hotkey.
36StakingRateLimitExceedednoneA transactor exceeded the rate limit for staking.
37SubNetRegistrationDisablednoneRegistration is disabled.
38TooManyRegistrationsThisIntervalnoneThe number of registration attempts exceeded the allowed number in the interval.
39TransactorAccountShouldBeHotKeynoneThe hotkey is required to be the origin.
40FaucetDisablednoneFaucet is disabled.
41NotSubnetOwnernoneNot a subnet owner.
42RegistrationNotPermittedOnRootSubnetnoneOperation is not permitted on the root subnet.
43StakeTooLowForRootnoneA hotkey with too little stake is attempting to join the root subnet.
44AllNetworksInImmunitynoneAll subnets are in the immunity period.
45NotEnoughBalanceToPaySwapHotKeynoneNot enough balance to pay swapping hotkey.
46NotRootSubnetnoneNetuid does not match for setting root network weights.
47CanNotSetRootNetworkWeightsnoneCan not set weights for the root network.
48NoNeuronIdAvailablenoneNo neuron ID is available.
49DelegateTakeTooLownoneDelegate take is too low.
50DelegateTakeTooHighnoneDelegate take is too high.
51NoWeightsCommitFoundnoneNo commit found for the provided hotkey+netuid combination when attempting to reveal the weights.
52InvalidRevealCommitHashNotMatchnoneCommitted hash does not equal the hashed reveal data.
53CommitRevealEnablednoneAttempting to call set_weights when commit/reveal is enabled
54CommitRevealDisablednoneAttemtping to commit/reveal weights when disabled.
55LiquidAlphaDisablednoneAttempting to set alpha high/low while disabled
56AlphaHighTooLownoneAlpha high is too low: alpha_high > 0.8
57AlphaLowOutOfRangenoneAlpha low is out of range: alpha_low > 0 && alpha_low < 0.8
58ColdKeyAlreadyAssociatednoneThe coldkey has already been swapped
59NotEnoughBalanceToPaySwapColdKeynoneThe coldkey balance is not enough to pay for the swap
60InvalidChildnoneAttempting to set an invalid child for a hotkey on a network.
61DuplicateChildnoneDuplicate child when setting children.
62ProportionOverflownoneProportion overflow when setting children.
63TooManyChildrennoneToo many children MAX 5.
64TxRateLimitExceedednoneDefault transaction rate limit exceeded.
65ColdkeySwapAnnouncementNotFoundnoneColdkey swap announcement not found
66ColdkeySwapTooEarlynoneColdkey swap too early.
67ColdkeySwapReannouncedTooEarlynoneColdkey swap reannounced too early.
68AnnouncedColdkeyHashDoesNotMatchnoneThe announced coldkey hash does not match the new coldkey hash.
69ColdkeySwapAlreadyDisputednoneColdkey swap already disputed
70NewColdKeyIsHotkeynoneNew coldkey is hotkey
71InvalidChildkeyTakenoneChildkey take is invalid.
72TxChildkeyTakeRateLimitExceedednoneChildkey take rate limit exceeded.
73InvalidIdentitynoneInvalid identity.
74MechanismDoesNotExistnoneSubnet mechanism does not exist.
75StakeUnavailablenoneTrying to unstake or re-lock the locked amount.
76SubnetNotExistsnoneTrying to perform action on non-existent subnet.
77TooManyUnrevealedCommitsnoneMaximum commit limit reached
78ExpiredWeightCommitnoneAttempted to reveal weights that are expired.
79RevealTooEarlynoneAttempted to reveal weights too early.
80InputLengthsUnequalnoneAttempted to batch reveal weights with mismatched vector input lenghts.
81CommittingWeightsTooFastnoneA transactor exceeded the rate limit for setting weights.
82AmountTooLownoneStake amount is too low.
83InsufficientLiquiditynoneNot enough liquidity.
84SlippageTooHighnoneSlippage is too high for the transaction.
85TransferDisallowednoneSubnet disallows transfer.
86ActivityCutoffTooLownoneActivity cutoff is being set too low.
87CallDisablednoneCall is disabled
88FirstEmissionBlockNumberAlreadySetnoneFirstEmissionBlockNumber is already set.
89NeedWaitingMoreBlocksToStarCallnoneneed wait for more blocks to accept the start call extrinsic.
90NotEnoughAlphaOutToRecyclenoneNot enough AlphaOut on the subnet to recycle
91CannotBurnOrRecycleOnRootSubnetnoneCannot burn or recycle TAO from root subnet
92UnableToRecoverPublicKeynonePublic key cannot be recovered.
93InvalidRecoveredPublicKeynoneRecovered public key is invalid.
94SubtokenDisablednoneSubToken disabled now
95HotKeySwapOnSubnetIntervalNotPassednoneToo frequent hotkey swap on subnet
96ZeroMaxStakeAmountnoneZero max stake amount
97SameNetuidnoneInvalid netuid duplication
98InsufficientBalancenoneThe caller does not have enough balance for the operation.
99StakingOperationRateLimitExceedednoneToo frequent staking operations
100InvalidLeaseBeneficiarynoneInvalid lease beneficiary to register the leased network.
101LeaseCannotEndInThePastnoneLease cannot end in the past.
102LeaseNetuidNotFoundnoneCouldn't find the lease netuid.
103LeaseDoesNotExistnoneLease does not exist.
104LeaseHasNoEndBlocknoneLease has no end block.
105LeaseHasNotEndednoneLease has not ended.
106OverflownoneAn overflow occurred.
107BeneficiaryDoesNotOwnHotkeynoneBeneficiary does not own hotkey.
108ExpectedBeneficiaryOriginnoneExpected beneficiary origin.
109AdminActionProhibitedDuringWeightsWindownoneAdmin operation is prohibited during the protected weights window
110SymbolDoesNotExistnoneSymbol does not exist.
111SymbolAlreadyInUsenoneSymbol already in use.
112IncorrectCommitRevealVersionnoneIncorrect commit-reveal version.
113RevealPeriodTooLargenoneReveal period is too large.
114RevealPeriodTooSmallnoneReveal period is too small.
115InvalidValuenoneGeneric error for out-of-range parameter value
116SubnetLimitReachednoneSubnet limit reached & there is no eligible subnet to prune
117CannotAffordLockCostnoneInsufficient funds to meet the subnet lock cost
118EvmKeyAssociateRateLimitExceedednoneexceeded the rate limit for associating an EVM key.
119SameAutoStakeHotkeyAlreadySetnoneSame auto stake hotkey already set
120UidMapCouldNotBeClearednoneThe UID map for the subnet could not be cleared
121TrimmingWouldExceedMaxImmunePercentagenoneTrimming would exceed the max immune neurons percentage
122ChildParentInconsistencynoneViolating the rules of Childkey-Parentkey consistency
123InvalidNumRootClaimnoneInvalid number of root claims
124InvalidRootClaimThresholdnoneInvalid value of root claim threshold
125InvalidSubnetNumbernoneExceeded subnet limit number or zero.
126TooManyUIDsPerMechanismnoneThe maximum allowed UIDs times mechanism count should not exceed 256.
127VotingPowerTrackingNotEnablednoneVoting power tracking is not enabled for this subnet.
128InvalidVotingPowerEmaAlphanoneInvalid voting power EMA alpha value (must be <= 10^18).
129DeprecatednoneDeprecated call.
130AddStakeBurnRateLimitExceedednone"Add stake and burn" exceeded the operation rate limit
131ColdkeySwapAnnouncednoneA coldkey swap has been announced for this account.
132ColdkeySwapDisputednoneA coldkey swap for this account is under dispute.
133ColdkeySwapClearTooEarlynoneColdkey swap clear too early.
134DisabledTemporarilynoneDisabled temporarily.
135RegistrationPriceLimitExceedednoneRegistration Price Limit Exceeded
136LockHotkeyMismatchnoneLock hotkey mismatch: existing lock is for a different hotkey.
137InsufficientStakeForLocknoneInsufficient stake on subnet to cover the lock amount.
138NoExistingLocknoneNo existing lock found for the given coldkey and subnet.
139ActiveLockExistsnoneThere is already an active lock for the given coldkey.
140CannotUseSystemAccountnoneA system account cannot be used in this operation
141UnlockAmountTooHighnoneTrying to unlock more than locked

SCALE Encoding

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

Examples

RootNetworkDoesNotExist
0x00
00 Variant index 0 = RootNetworkDoesNotExist
InvalidIpType
0x01
01 Variant index 1 = InvalidIpType
InvalidIpAddress
0x02
02 Variant index 2 = InvalidIpAddress

Code Examples

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

const registry = new TypeRegistry();

// Encode SubtensorModule::Error — variant "RootNetworkDoesNotExist"
const value = registry.createType("SubtensorModule::Error", "RootNetworkDoesNotExist");
console.log("Hex:", value.toHex());

Type Parameters

T

Also See

Type Information

Type ID
246
Kind
Variant
Path
pallet_subtensor::pallet::Error
Runtime
v411