BoundedVec
Composite 306 v393bounded_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)
| # | Name | Type |
|---|---|---|
| 0 | (unnamed) | Vec<u8> |
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<u8>
0x<field0>field 0 field0: Vec<u8>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 = u8
S
Referenced By (25)
#143 SubtensorModule::Call via commit_crv3_mechanism_weights.commit#143 SubtensorModule::Call via commit_timelocked_weights.commit#143 SubtensorModule::Call via commit_timelocked_mechanism_weights.commit#172 IdentityInfo via additional#239 CommitmentInfo via fields#241 Data via TimelockEncrypted.encrypted#241 Data via BigRaw#308 AdminUtils::Call via swap_authorities.new_authorities#354 Pulse via randomness#354 Pulse via signature#360 BeaconConfiguration via public_key#360 BeaconConfiguration via hash#360 BeaconConfiguration via group_hash#360 BeaconConfiguration via scheme_id#362 Metadata via beacon_id#369 MevShield::Call via submit_encrypted.ciphertext#370 Option via Some#444 NeuronCertificate via public_key#454 (AccountId, u64, BoundedVec, u64) #456 (AccountId, BoundedVec, u64)
and 5 more...
Type Information
- Type ID
- 306
- Kind
- Composite
- Path
- bounded_collections::bounded_vec::BoundedVec
- Runtime
- v393