RuntimeEvent

Variant 21 v393

node_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)

IndexNameFieldsDocs
0System
4Grandpa
5Balances
6TransactionPayment
7SubtensorModule
11Utility
12Sudo
13Multisig
14Preimage
15Scheduler
16Proxy
17Registry
18Commitments
19AdminUtils
20SafeMode
21Ethereum
22EVM
25BaseFee
26Drand
27Crowdloan
28Swap
29Contracts
30MevShield

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 = System
field 0 field0: Event
Grandpa = Grandpa(Event)
0x04<field0>
04 Variant index 4 = Grandpa
field 0 field0: Event
Balances = Balances(Event)
0x05<field0>
05 Variant index 5 = Balances
field 0 field0: Event

Code 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