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