(u16, AccountId, AccountId)
Tuple 461 v393About This Type
Tuple of 3 values: u16, AccountId, AccountId.
A fixed-size ordered collection of heterogeneous types, each encoded in order.
Encoding: Each element encoded consecutively in declaration order.
Tuple (3 elements)
SCALE Encoding
- Rule
- 3 elements encoded consecutively in declaration order.
- Size
- sum of element sizes
Examples
(u16, AccountId, AccountId) = (<u16>, <AccountId>, <AccountId>)
0x<u16><AccountId><AccountId>element 0 u16 encoded at position 0element 1 AccountId encoded at position 1element 2 AccountId encoded at position 2Code Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode a (u16, AccountId, AccountId)
const tuple = registry.createType("(u16, AccountId, AccountId)", [1, "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY", "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"]);
console.log("Hex:", tuple.toHex());Type Information
- Type ID
- 461
- Kind
- Tuple
- Runtime
- v393