WeakBoundedVec

Composite 402 v393

bounded_collections::weak_bounded_vec::WeakBoundedVec

About This Type

Structured type: WeakBoundedVec.

A struct-like type where each field is encoded in declaration order.

Encoding: Fields encoded consecutively in declaration order, no field names or separators.

Fields (1)

#NameType
0(unnamed)Vec<(Public, u64)>

SCALE Encoding

Rule
1 field encoded consecutively in declaration order. No field names or delimiters.
Size
sum of field sizes

Examples

Struct with 1 field = ?: Vec<(Public, u64)>
0x<field0>
field 0 field0: Vec<(Public, u64)>

Code Examples

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

const registry = new TypeRegistry();

// Encode WeakBoundedVec
const value = registry.createType("WeakBoundedVec", {
  field: 0
});
console.log("Hex:", value.toHex());

Type Parameters

T = (Public, u64)
S

Referenced By (1)

Type Information

Type ID
402
Kind
Composite
Path
bounded_collections::weak_bounded_vec::WeakBoundedVec
Runtime
v393