(AccountId, AccountId, u16)

Tuple 431 v393

About This Type

Tuple of 3 values: AccountId, AccountId, u16.

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

Encoding: Each element encoded consecutively in declaration order.

Tuple (3 elements)

Elements
  1. 0 AccountId
  2. 1 AccountId
  3. 2 u16

SCALE Encoding

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

Examples

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

Code Examples

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

const registry = new TypeRegistry();

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

Type Information

Type ID
431
Kind
Tuple
Runtime
v393