Vec<IdAmount>
Sequence 418 v393About This Type
Public key for one of three signature schemes: Ed25519, Sr25519, or Ecdsa.
Used in signature verification where the signing algorithm is not known in advance.
Encoding: Variant: 0x00=Ed25519 (32 bytes), 0x01=Sr25519 (32 bytes), 0x02=Ecdsa (33 bytes).
Sequence (Vec)
- Element Type
- IdAmount
- SCALE Encoding
- Length-prefixed (Compact<u32> length followed by elements)
SCALE Encoding
- Rule
- Compact<u32> length prefix followed by each IdAmount element encoded in sequence.
- Size
- variable
Examples
3-element Vec<IdAmount> = [elem0, elem1, elem2]
0x0c<elem0><elem1><elem2>0c Compact length = 3<elem0>... Each IdAmount encoded in sequenceCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode a Vec<IdAmount>
const vec = registry.createType("Vec<IdAmount>", [1, 2, 3]);
console.log("Hex:", vec.toHex());Referenced By (2)
Type Information
- Type ID
- 418
- Kind
- Sequence
- Runtime
- v393