[u8; 36]

Array 295 v411

About This Type

Fixed-length array of 36 u8 values.

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

Encoding: 36 elements encoded consecutively, no length prefix.

Fixed-Length Array

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

SCALE Encoding

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

Examples

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

Code Examples

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

const registry = new TypeRegistry();

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

Referenced By (2)

Type Information

Type ID
295
Kind
Array
Runtime
v411