[u8; 7]

Array 182 v393

About This Type

Fixed-length array of 7 u8 values.

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

Encoding: 7 elements encoded consecutively, no length prefix.

Fixed-Length Array

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

SCALE Encoding

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

Examples

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

Code Examples

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

const registry = new TypeRegistry();

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

Referenced By (2)

Type Information

Type ID
182
Kind
Array
Runtime
v393