LockState
Composite 194 v411pallet_subtensor::staking::lock::LockState
About This Type
Structured type: LockState.
A struct-like type where each field is encoded in declaration order.
Encoding: Fields encoded consecutively in declaration order, no field names or separators.
Fields (3)
SCALE Encoding
- Rule
- 3 fields encoded consecutively in declaration order. No field names or delimiters.
- Size
- sum of field sizes
Examples
Struct with 3 fields = locked_mass: u64, conviction: FixedU128, last_update: u64
0x<field0><field1><field2>field 0 locked_mass: u64field 1 conviction: FixedU128field 2 last_update: u64Code Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode LockState
const value = registry.createType("LockState", {
locked_mass: 1_000_000_000n,
conviction: 0,
last_update: 1_000_000_000n
});
console.log("Hex:", value.toHex());Type Information
- Type ID
- 194
- Kind
- Composite
- Path
- pallet_subtensor::staking::lock::LockState
- Runtime
- v411