(u16, TickIndex)

Tuple 535 v393

About This Type

Tuple of 2 values: u16, TickIndex.

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 u16
  2. 1 TickIndex

SCALE Encoding

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

Examples

(u16, TickIndex) = (<u16>, <TickIndex>)
0x<u16><TickIndex>
element 0 u16 encoded at position 0
element 1 TickIndex encoded at position 1

Code Examples

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

const registry = new TypeRegistry();

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

Type Information

Type ID
535
Kind
Tuple
Runtime
v393