RuntimeEvent
Variant 21 v393node_subtensor_runtime::RuntimeEvent
About This Type
Event enum for the node_subtensor_runtime pallet.
Contains all possible events emitted by the node_subtensor_runtime pallet.
Variants (23)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | System | ||
| 4 | Grandpa | ||
| 5 | Balances | ||
| 6 | TransactionPayment | ||
| 7 | SubtensorModule | ||
| 11 | Utility | ||
| 12 | Sudo | ||
| 13 | Multisig | ||
| 14 | Preimage | ||
| 15 | Scheduler | ||
| 16 | Proxy | ||
| 17 | Registry | ||
| 18 | Commitments | ||
| 19 | AdminUtils | ||
| 20 | SafeMode | ||
| 21 | Ethereum | ||
| 22 | EVM | ||
| 25 | BaseFee | ||
| 26 | Drand | ||
| 27 | Crowdloan | ||
| 28 | Swap | ||
| 29 | Contracts | ||
| 30 | MevShield |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 23 possible variants.
- Size
- variable (1+ bytes)
Examples
System = System(Event)
0x00<field0>00 Variant index 0 = Systemfield 0 field0: EventGrandpa = Grandpa(Event)
0x04<field0>04 Variant index 4 = Grandpafield 0 field0: EventBalances = Balances(Event)
0x05<field0>05 Variant index 5 = Balancesfield 0 field0: EventCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode RuntimeEvent — variant "System"
const value = registry.createType("RuntimeEvent", { System: { value: 0 } });
console.log("Hex:", value.toHex());Referenced By (1)
Type Information
- Type ID
- 21
- Kind
- Variant
- Path
- node_subtensor_runtime::RuntimeEvent
- Runtime
- v393