Utility::Error
Variant 445 v411pallet_subtensor_utility::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 (2)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | TooManyCalls | none | Too many calls batched. |
| 1 | InvalidDerivedAccount | none | Bad input data for derived account ID |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 2 possible variants.
- Size
- variable (1+ bytes)
Examples
TooManyCalls
0x0000 Variant index 0 = TooManyCallsInvalidDerivedAccount
0x0101 Variant index 1 = InvalidDerivedAccountCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode Utility::Error — variant "TooManyCalls"
const value = registry.createType("Utility::Error", "TooManyCalls");
console.log("Hex:", value.toHex());Type Parameters
T
Also See
Type Information
- Type ID
- 445
- Kind
- Variant
- Path
- pallet_subtensor_utility::pallet::Error
- Runtime
- v411