(Vec<u8>, KeyTypeId)

Tuple 587 v393

About This Type

Tuple of 2 values: Vec<u8>, KeyTypeId.

A fixed-size ordered collection of heterogeneous types, each encoded in order.

Encoding: Each element encoded consecutively in declaration order.

Tuple (2 elements)

Elements
  1. 0 Vec<u8>
  2. 1 KeyTypeId

SCALE Encoding

Rule
2 elements encoded consecutively in declaration order.
Size
sum of element sizes

Examples

(Vec<u8>, KeyTypeId) = (<Vec<u8>>, <KeyTypeId>)
0x<Vec<u8>><KeyTypeId>
element 0 Vec<u8> encoded at position 0
element 1 KeyTypeId encoded at position 1

Code Examples

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

const registry = new TypeRegistry();

// Encode a (Vec<u8>, KeyTypeId)
const tuple = registry.createType("(Vec<u8>, KeyTypeId)", [0, 0]);
console.log("Hex:", tuple.toHex());

Referenced By (1)

Type Information

Type ID
587
Kind
Tuple
Runtime
v393