DispatchEventInfo

Composite 23 v393

frame_system::DispatchEventInfo

About This Type

Event enum for the frame_system pallet.

Contains all possible events emitted by the frame_system pallet.

Fields (3)

#NameType
0weightWeight
1classDispatchClass
2pays_feePays

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 = weight: Weight, class: DispatchClass, pays_fee: Pays
0x<field0><field1><field2>
field 0 weight: Weight
field 1 class: DispatchClass
field 2 pays_fee: Pays

Code Examples

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

const registry = new TypeRegistry();

// Encode DispatchEventInfo
const value = registry.createType("DispatchEventInfo", {
  weight: 0,
  class: 0,
  pays_fee: 0
});
console.log("Hex:", value.toHex());

Referenced By (2)

Type Information

Type ID
23
Kind
Composite
Path
frame_system::DispatchEventInfo
Runtime
v393