Vec<AccountId>
Sequence 179 v411About 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 (7)
#175 Balances::Call via upgrade_accounts.who#251 Multisig::Call via as_multi_threshold_1.other_signatories#251 Multisig::Call via as_multi.other_signatories#251 Multisig::Call via approve_as_multi.other_signatories#251 Multisig::Call via cancel_as_multi.other_signatories#251 Multisig::Call via poke_deposit.other_signatories#449 BoundedVec
Type Information
- Type ID
- 179
- Kind
- Sequence
- Runtime
- v411