DispatchEventInfo
Composite 23 v393frame_system::DispatchEventInfo
About This Type
Event enum for the frame_system pallet.
Contains all possible events emitted by the frame_system pallet.
Fields (3)
| # | Name | Type |
|---|---|---|
| 0 | weight | Weight |
| 1 | class | DispatchClass |
| 2 | pays_fee | Pays |
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: Weightfield 1 class: DispatchClassfield 2 pays_fee: PaysCode 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