(H256, u32)

Tuple 479 v393

About This Type

Tuple of 2 values: H256, u32.

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 H256
  2. 1 u32

SCALE Encoding

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

Examples

(H256, u32) = (<H256>, <u32>)
0x<H256><u32>
element 0 H256 encoded at position 0
element 1 u32 encoded at position 1

Code Examples

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

const registry = new TypeRegistry();

// Encode a (H256, u32)
const tuple = registry.createType("(H256, u32)", [0, 1000000]);
console.log("Hex:", tuple.toHex());

Type Information

Type ID
479
Kind
Tuple
Runtime
v393