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