(H160, u64)

Tuple 462 v393

About This Type

Tuple of 2 values: H160, 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 H160
  2. 1 u64

SCALE Encoding

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

Examples

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

Code Examples

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

const registry = new TypeRegistry();

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

Type Information

Type ID
462
Kind
Tuple
Runtime
v393