BlockLength

Composite 114 v393

frame_system::limits::BlockLength

About This Type

Structured type: BlockLength.

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 (1)

#NameType
0maxPerDispatchClass

SCALE Encoding

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

Examples

Struct with 1 field = max: PerDispatchClass
0x<field0>
field 0 max: PerDispatchClass

Code Examples

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

const registry = new TypeRegistry();

// Encode BlockLength
const value = registry.createType("BlockLength", {
  max: 0
});
console.log("Hex:", value.toHex());

Type Information

Type ID
114
Kind
Composite
Path
frame_system::limits::BlockLength
Runtime
v393