[u8; 40]

Array 212 v393

About This Type

On-chain identity information for a Subtensor account.

Contains human-readable metadata like display name, legal name, web URL, and social handles registered on-chain for an account.

Fixed-Length Array

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

SCALE Encoding

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

Examples

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

Code Examples

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

const registry = new TypeRegistry();

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

Referenced By (2)

Type Information

Type ID
212
Kind
Array
Runtime
v393