DispatchClass
Variant 24 v393frame_support::dispatch::DispatchClass
About This Type
Classification of an extrinsic: Normal, Operational, or Mandatory.
Determines how a transaction consumes block weight. Normal transactions compete for limited block space, Operational are prioritized, and Mandatory always execute (like timestamp inherents).
Variants (3)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | Normal | none | |
| 1 | Operational | none | |
| 2 | Mandatory | none |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 3 possible variants.
- Size
- variable (1+ bytes)
Examples
Normal
0x0000 Variant index 0 = NormalOperational
0x0101 Variant index 1 = OperationalMandatory
0x0202 Variant index 2 = MandatoryCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode DispatchClass — variant "Normal"
const value = registry.createType("DispatchClass", "Normal");
console.log("Hex:", value.toHex());Referenced By (2)
Type Information
- Type ID
- 24
- Kind
- Variant
- Path
- frame_support::dispatch::DispatchClass
- Runtime
- v393