Vec<AccountId>
Sequence 141 v393About This Type
Variable-length list of AccountId values.
A dynamically-sized collection. The encoded length precedes the element data.
Encoding: Compact<u32> length prefix followed by each element encoded in sequence.
Sequence (Vec)
- Element Type
- AccountId
- SCALE Encoding
- Length-prefixed (Compact<u32> length followed by elements)
SCALE Encoding
- Rule
- Compact<u32> length prefix followed by each AccountId element encoded in sequence.
- Size
- variable
Examples
3-element Vec<AccountId> = [elem0, elem1, elem2]
0x0c<elem0><elem1><elem2>0c Compact length = 3<elem0>... Each AccountId encoded in sequenceCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode a Vec<AccountId>
const vec = registry.createType("Vec<AccountId>", [1, 2, 3]);
console.log("Hex:", vec.toHex());Referenced By (12)
#137 Balances::Call via upgrade_accounts.who#164 Multisig::Call via as_multi_threshold_1.other_signatories#164 Multisig::Call via as_multi.other_signatories#164 Multisig::Call via approve_as_multi.other_signatories#164 Multisig::Call via cancel_as_multi.other_signatories#164 Multisig::Call via poke_deposit.other_signatories#470 BoundedVec #668 Metagraph via hotkeys#668 Metagraph via coldkeys#678 SubnetState via hotkeys#678 SubnetState via coldkeys#690 Option via Some
Type Information
- Type ID
- 141
- Kind
- Sequence
- Runtime
- v393