(AccountId, Compact<u64>)

Tuple 676 v393

About This Type

Tuple of 2 values: AccountId, Compact<u64>.

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

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

Code Examples

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

const registry = new TypeRegistry();

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

Referenced By (2)

Type Information

Type ID
676
Kind
Tuple
Runtime
v393