(BoundedVec, u64)

Tuple 494 v393

About This Type

Tuple of 2 values: BoundedVec, u64.

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 BoundedVec
  2. 1 u64

SCALE Encoding

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

Examples

(BoundedVec, u64) = (<BoundedVec>, <u64>)
0x<BoundedVec><u64>
element 0 BoundedVec encoded at position 0
element 1 u64 encoded at position 1

Code Examples

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

const registry = new TypeRegistry();

// Encode a (BoundedVec, u64)
const tuple = registry.createType("(BoundedVec, u64)", [0, 1_000_000_000n]);
console.log("Hex:", tuple.toHex());

Type Information

Type ID
494
Kind
Tuple
Runtime
v393