SubtensorModule::Error

Variant 465 v393

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 (135)

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
23InvalidWorkBlocknoneThe supplied PoW hash block is in the future or negative.
24InvalidDifficultynoneThe supplied PoW hash block does not meet the network difficulty.
25InvalidSealnoneThe supplied PoW hash seal does not match the supplied work.
26MaxWeightExceedednoneThe dispatch is attempting to set weights on chain with weight value exceeding the configured max weight limit (currently `u16::MAX`).
27HotKeyAlreadyDelegatenoneThe hotkey is attempting to become a delegate when the hotkey is already a delegate.
28SettingWeightsTooFastnoneA transactor exceeded the rate limit for setting weights.
29IncorrectWeightVersionKeynoneA validator is attempting to set weights from a validator with incorrect weight version.
30ServingRateLimitExceedednoneAn axon or prometheus serving exceeded the rate limit for a registered neuron.
31UidsLengthExceedUidsInSubNetnoneThe caller is attempting to set weights with more UIDs than allowed.
32NetworkTxRateLimitExceedednoneA transactor exceeded the rate limit for add network transaction.
33DelegateTxRateLimitExceedednoneA transactor exceeded the rate limit for delegate transaction.
34HotKeySetTxRateLimitExceedednoneA transactor exceeded the rate limit for setting or swapping hotkey.
35StakingRateLimitExceedednoneA transactor exceeded the rate limit for staking.
36SubNetRegistrationDisablednoneRegistration is disabled.
37TooManyRegistrationsThisIntervalnoneThe number of registration attempts exceeded the allowed number in the interval.
38TransactorAccountShouldBeHotKeynoneThe hotkey is required to be the origin.
39FaucetDisablednoneFaucet is disabled.
40NotSubnetOwnernoneNot a subnet owner.
41RegistrationNotPermittedOnRootSubnetnoneOperation is not permitted on the root subnet.
42StakeTooLowForRootnoneA hotkey with too little stake is attempting to join the root subnet.
43AllNetworksInImmunitynoneAll subnets are in the immunity period.
44NotEnoughBalanceToPaySwapHotKeynoneNot enough balance to pay swapping hotkey.
45NotRootSubnetnoneNetuid does not match for setting root network weights.
46CanNotSetRootNetworkWeightsnoneCan not set weights for the root network.
47NoNeuronIdAvailablenoneNo neuron ID is available.
48DelegateTakeTooLownoneDelegate take is too low.
49DelegateTakeTooHighnoneDelegate take is too high.
50NoWeightsCommitFoundnoneNo commit found for the provided hotkey+netuid combination when attempting to reveal the weights.
51InvalidRevealCommitHashNotMatchnoneCommitted hash does not equal the hashed reveal data.
52CommitRevealEnablednoneAttempting to call set_weights when commit/reveal is enabled
53CommitRevealDisablednoneAttemtping to commit/reveal weights when disabled.
54LiquidAlphaDisablednoneAttempting to set alpha high/low while disabled
55AlphaHighTooLownoneAlpha high is too low: alpha_high > 0.8
56AlphaLowOutOfRangenoneAlpha low is out of range: alpha_low > 0 && alpha_low < 0.8
57ColdKeyAlreadyAssociatednoneThe coldkey has already been swapped
58NotEnoughBalanceToPaySwapColdKeynoneThe coldkey balance is not enough to pay for the swap
59InvalidChildnoneAttempting to set an invalid child for a hotkey on a network.
60DuplicateChildnoneDuplicate child when setting children.
61ProportionOverflownoneProportion overflow when setting children.
62TooManyChildrennoneToo many children MAX 5.
63TxRateLimitExceedednoneDefault transaction rate limit exceeded.
64ColdkeySwapAnnouncementNotFoundnoneColdkey swap announcement not found
65ColdkeySwapTooEarlynoneColdkey swap too early.
66ColdkeySwapReannouncedTooEarlynoneColdkey swap reannounced too early.
67AnnouncedColdkeyHashDoesNotMatchnoneThe announced coldkey hash does not match the new coldkey hash.
68ColdkeySwapAlreadyDisputednoneColdkey swap already disputed
69NewColdKeyIsHotkeynoneNew coldkey is hotkey
70InvalidChildkeyTakenoneChildkey take is invalid.
71TxChildkeyTakeRateLimitExceedednoneChildkey take rate limit exceeded.
72InvalidIdentitynoneInvalid identity.
73MechanismDoesNotExistnoneSubnet mechanism does not exist.
74CannotUnstakeLocknoneTrying to unstake your lock amount.
75SubnetNotExistsnoneTrying to perform action on non-existent subnet.
76TooManyUnrevealedCommitsnoneMaximum commit limit reached
77ExpiredWeightCommitnoneAttempted to reveal weights that are expired.
78RevealTooEarlynoneAttempted to reveal weights too early.
79InputLengthsUnequalnoneAttempted to batch reveal weights with mismatched vector input lenghts.
80CommittingWeightsTooFastnoneA transactor exceeded the rate limit for setting weights.
81AmountTooLownoneStake amount is too low.
82InsufficientLiquiditynoneNot enough liquidity.
83SlippageTooHighnoneSlippage is too high for the transaction.
84TransferDisallowednoneSubnet disallows transfer.
85ActivityCutoffTooLownoneActivity cutoff is being set too low.
86CallDisablednoneCall is disabled
87FirstEmissionBlockNumberAlreadySetnoneFirstEmissionBlockNumber is already set.
88NeedWaitingMoreBlocksToStarCallnoneneed wait for more blocks to accept the start call extrinsic.
89NotEnoughAlphaOutToRecyclenoneNot enough AlphaOut on the subnet to recycle
90CannotBurnOrRecycleOnRootSubnetnoneCannot burn or recycle TAO from root subnet
91UnableToRecoverPublicKeynonePublic key cannot be recovered.
92InvalidRecoveredPublicKeynoneRecovered public key is invalid.
93SubtokenDisablednoneSubToken disabled now
94HotKeySwapOnSubnetIntervalNotPassednoneToo frequent hotkey swap on subnet
95ZeroMaxStakeAmountnoneZero max stake amount
96SameNetuidnoneInvalid netuid duplication
97InsufficientBalancenoneThe caller does not have enough balance for the operation.
98StakingOperationRateLimitExceedednoneToo frequent staking operations
99InvalidLeaseBeneficiarynoneInvalid lease beneficiary to register the leased network.
100LeaseCannotEndInThePastnoneLease cannot end in the past.
101LeaseNetuidNotFoundnoneCouldn't find the lease netuid.
102LeaseDoesNotExistnoneLease does not exist.
103LeaseHasNoEndBlocknoneLease has no end block.
104LeaseHasNotEndednoneLease has not ended.
105OverflownoneAn overflow occurred.
106BeneficiaryDoesNotOwnHotkeynoneBeneficiary does not own hotkey.
107ExpectedBeneficiaryOriginnoneExpected beneficiary origin.
108AdminActionProhibitedDuringWeightsWindownoneAdmin operation is prohibited during the protected weights window
109SymbolDoesNotExistnoneSymbol does not exist.
110SymbolAlreadyInUsenoneSymbol already in use.
111IncorrectCommitRevealVersionnoneIncorrect commit-reveal version.
112RevealPeriodTooLargenoneReveal period is too large.
113RevealPeriodTooSmallnoneReveal period is too small.
114InvalidValuenoneGeneric error for out-of-range parameter value
115SubnetLimitReachednoneSubnet limit reached & there is no eligible subnet to prune
116CannotAffordLockCostnoneInsufficient funds to meet the subnet lock cost
117EvmKeyAssociateRateLimitExceedednoneexceeded the rate limit for associating an EVM key.
118SameAutoStakeHotkeyAlreadySetnoneSame auto stake hotkey already set
119UidMapCouldNotBeClearednoneThe UID map for the subnet could not be cleared
120TrimmingWouldExceedMaxImmunePercentagenoneTrimming would exceed the max immune neurons percentage
121ChildParentInconsistencynoneViolating the rules of Childkey-Parentkey consistency
122InvalidNumRootClaimnoneInvalid number of root claims
123InvalidRootClaimThresholdnoneInvalid value of root claim threshold
124InvalidSubnetNumbernoneExceeded subnet limit number or zero.
125TooManyUIDsPerMechanismnoneThe maximum allowed UIDs times mechanism count should not exceed 256.
126VotingPowerTrackingNotEnablednoneVoting power tracking is not enabled for this subnet.
127InvalidVotingPowerEmaAlphanoneInvalid voting power EMA alpha value (must be <= 10^18).
128PrecisionLossnoneUnintended precision loss when unstaking alpha
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.

SCALE Encoding

Rule
1-byte variant index followed by variant-specific field data. 135 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

Referenced By (21)

and 1 more...

Also See

Type Information

Type ID
465
Kind
Variant
Path
pallet_subtensor::pallet::Error
Runtime
v393