BTreeSet

Composite 501 v393

BTreeSet

About This Type

Structured type: BTreeSet.

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<(u16, AccountId)>

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<(u16, AccountId)>
0x<field0>
field 0 field0: Vec<(u16, AccountId)>

Code Examples

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

const registry = new TypeRegistry();

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

Type Parameters

T = (u16, AccountId)

Referenced By (2)

Type Information

Type ID
501
Kind
Composite
Path
BTreeSet
Runtime
v393