BoundedVec

Composite 398 v393

bounded_collections::bounded_vec::BoundedVec

About This Type

Structured type: BoundedVec.

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<H256>

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<H256>
0x<field0>
field 0 field0: Vec<H256>

Code Examples

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

const registry = new TypeRegistry();

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

Type Parameters

T = H256
S

Referenced By (25)

and 5 more...

Type Information

Type ID
398
Kind
Composite
Path
bounded_collections::bounded_vec::BoundedVec
Runtime
v393