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