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