EventRecord

Composite 20 v393

frame_system::EventRecord

About This Type

Event enum for the frame_system pallet.

Contains all possible events emitted by the frame_system pallet.

Fields (3)

#NameType
0phasePhase
1eventRuntimeEvent
2topicsVec<H256>

SCALE Encoding

Rule
3 fields encoded consecutively in declaration order. No field names or delimiters.
Size
sum of field sizes

Examples

Struct with 3 fields = phase: Phase, event: RuntimeEvent, topics: Vec<H256>
0x<field0><field1><field2>
field 0 phase: Phase
field 1 event: RuntimeEvent
field 2 topics: Vec<H256>

Code Examples

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

const registry = new TypeRegistry();

// Encode EventRecord
const value = registry.createType("EventRecord", {
  phase: 0,
  event: 0,
  topics: 0
});
console.log("Hex:", value.toHex());

Type Parameters

E = RuntimeEvent
T = H256

Referenced By (2)

Type Information

Type ID
20
Kind
Composite
Path
frame_system::EventRecord
Runtime
v393