BoundedBTreeMap
Composite 546 v393bounded_collections::bounded_btree_map::BoundedBTreeMap
About This Type
Structured type: BoundedBTreeMap.
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)
| # | Name | Type |
|---|---|---|
| 0 | (unnamed) | BTreeMap |
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 = ?: BTreeMap
0x<field0>field 0 field0: BTreeMapCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode BoundedBTreeMap
const value = registry.createType("BoundedBTreeMap", {
field: 0
});
console.log("Hex:", value.toHex());Type Parameters
K = H256
V = u64
S
Referenced By (1)
Type Information
- Type ID
- 546
- Kind
- Composite
- Path
- bounded_collections::bounded_btree_map::BoundedBTreeMap
- Runtime
- v393