[u8; 126]
Array 302 v393About This Type
Fixed-length array of 126 u8 values.
Always exactly 126 elements. No length prefix needed since the size is known at compile time.
Encoding: 126 elements encoded consecutively, no length prefix.
Fixed-Length Array
- Element Type
- u8
- Length
- 126
- SCALE Encoding
- Fixed-length (126 x element size bytes)
SCALE Encoding
- Rule
- 126 elements encoded consecutively, no length prefix (size known at compile time).
- Size
- 126 bytes
Examples
126-byte array = [u8; 126]
0xxxxxxxxx...126 raw bytes 126 bytes concatenated, no prefixCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode a [u8; 126]
const arr = registry.createType("[u8; 126]", new Uint8Array(126));
console.log("Hex:", arr.toHex());Referenced By (1)
Type Information
- Type ID
- 302
- Kind
- Array
- Runtime
- v393