(AccountId, u64, BoundedVec, u64)

Tuple 454 v393

About This Type

Tuple of 4 values: AccountId, u64, BoundedVec, u64.

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

Encoding: Each element encoded consecutively in declaration order.

Tuple (4 elements)

Elements
  1. 0 AccountId
  2. 1 u64
  3. 2 BoundedVec
  4. 3 u64

SCALE Encoding

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

Examples

(AccountId, u64, BoundedVec, u64) = (<AccountId>, <u64>, <BoundedVec>, <u64>)
0x<AccountId><u64><BoundedVec><u64>
element 0 AccountId encoded at position 0
element 1 u64 encoded at position 1
element 2 BoundedVec encoded at position 2
element 3 u64 encoded at position 3

Code Examples

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

const registry = new TypeRegistry();

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

Referenced By (1)

Type Information

Type ID
454
Kind
Tuple
Runtime
v393