[u8; 56]

Array 228 v393

About This Type

Fixed-length array of 56 u8 values.

Always exactly 56 elements. No length prefix needed since the size is known at compile time.

Encoding: 56 elements encoded consecutively, no length prefix.

Fixed-Length Array

Element Type
u8
Length
56
SCALE Encoding
Fixed-length (56 x element size bytes)

SCALE Encoding

Rule
56 elements encoded consecutively, no length prefix (size known at compile time).
Size
56 bytes

Examples

56-byte array = [u8; 56]
0xxxxxxxxx...
56 raw bytes 56 bytes concatenated, no prefix

Code Examples

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

const registry = new TypeRegistry();

// Encode a [u8; 56]
const arr = registry.createType("[u8; 56]", new Uint8Array(56));
console.log("Hex:", arr.toHex());

Referenced By (2)

Type Information

Type ID
228
Kind
Array
Runtime
v393