(AccountId, AccountId)

Tuple 457 v393

About This Type

Tuple of 2 values: AccountId, AccountId.

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 AccountId
  2. 1 AccountId

SCALE Encoding

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

Examples

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

Code Examples

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

const registry = new TypeRegistry();

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

Type Information

Type ID
457
Kind
Tuple
Runtime
v393