(AccountId, AccountId, u16)
Tuple 431 v393About This Type
Tuple of 3 values: AccountId, AccountId, u16.
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
(AccountId, AccountId, u16) = (<AccountId>, <AccountId>, <u16>)
0x<AccountId><AccountId><u16>element 0 AccountId encoded at position 0element 1 AccountId encoded at position 1element 2 u16 encoded at position 2Code Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode a (AccountId, AccountId, u16)
const tuple = registry.createType("(AccountId, AccountId, u16)", ["5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY", "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY", 1]);
console.log("Hex:", tuple.toHex());Type Information
- Type ID
- 431
- Kind
- Tuple
- Runtime
- v393