WeakBoundedVec
Composite 404 v393bounded_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)
| # | Name | Type |
|---|---|---|
| 0 | (unnamed) | Vec<BalanceLock> |
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<BalanceLock>
0x<field0>field 0 field0: Vec<BalanceLock>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 = BalanceLock
S
Referenced By (1)
Type Information
- Type ID
- 404
- Kind
- Composite
- Path
- bounded_collections::weak_bounded_vec::WeakBoundedVec
- Runtime
- v393