SlotDuration
Composite 584 v393sp_consensus_slots::SlotDuration
About This Type
Structured type: SlotDuration.
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 (1)
| # | Name | Type |
|---|---|---|
| 0 | (unnamed) | u64 |
SCALE Encoding
- Rule
- 1 field encoded consecutively in declaration order. No field names or delimiters.
- Size
- sum of field sizes
Examples
Struct with 1 field = ?: u64
0x<field0>field 0 field0: u64Code Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode SlotDuration
const value = registry.createType("SlotDuration", {
field: 1_000_000_000n
});
console.log("Hex:", value.toHex());Type Information
- Type ID
- 584
- Kind
- Composite
- Path
- sp_consensus_slots::SlotDuration
- Runtime
- v393