BlockWeights
Composite 110 v393frame_system::limits::BlockWeights
About This Type
Structured type: BlockWeights.
A struct-like type where each field is encoded in declaration order.
Encoding: Fields encoded consecutively in declaration order, no field names or separators.
Fields (3)
| # | Name | Type |
|---|---|---|
| 0 | base_block | Weight |
| 1 | max_block | Weight |
| 2 | per_class | PerDispatchClass |
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 = base_block: Weight, max_block: Weight, per_class: PerDispatchClass
0x<field0><field1><field2>field 0 base_block: Weightfield 1 max_block: Weightfield 2 per_class: PerDispatchClassCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode BlockWeights
const value = registry.createType("BlockWeights", {
base_block: 0,
max_block: 0,
per_class: 0
});
console.log("Hex:", value.toHex());Type Information
- Type ID
- 110
- Kind
- Composite
- Path
- frame_system::limits::BlockWeights
- Runtime
- v393