(Vec<(u64, AccountId)>, u64)

Tuple 428 v393

About This Type

Tuple of 2 values: Vec<(u64, AccountId.

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

Encoding: Each element encoded consecutively in declaration order.

Tuple (2 elements)

SCALE Encoding

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

Examples

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

Code Examples

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

const registry = new TypeRegistry();

// Encode a (Vec<(u64, AccountId)>, u64)
const tuple = registry.createType("(Vec<(u64, AccountId)>, u64)", ["5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY", 1_000_000_000n]);
console.log("Hex:", tuple.toHex());

Type Information

Type ID
428
Kind
Tuple
Runtime
v393