BoundedVec
Composite 441 v411bounded_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 (27)
#210 NeuronCertificate via public_key#221 (AccountId, u64, BoundedVec, u64) #224 (AccountId, BoundedVec, u64) #234 SubtensorModule::Call via commit_crv3_mechanism_weights.commit#234 SubtensorModule::Call via commit_timelocked_weights.commit#234 SubtensorModule::Call via commit_timelocked_mechanism_weights.commit#259 IdentityInfo via additional#326 CommitmentInfo via fields#328 Data via TimelockEncrypted.encrypted#328 Data via BigRaw#395 AdminUtils::Call via swap_authorities.new_authorities#423 Pulse via randomness#423 Pulse via signature#429 BeaconConfiguration via public_key#429 BeaconConfiguration via hash#429 BeaconConfiguration via group_hash#429 BeaconConfiguration via scheme_id#431 Metadata via beacon_id#438 MevShield::Call via submit_encrypted.ciphertext#438 MevShield::Call via store_encrypted.encrypted_call
and 7 more...
Type Information
- Type ID
- 441
- Kind
- Composite
- Path
- bounded_collections::bounded_vec::BoundedVec
- Runtime
- v411