Timestamp pallet
Derived from live runtime metadata on TRN root (pallet index 2, captured 2026-05-02). For prose-style documentation see Timestamp on the curated reference side.
- Pallet index
2- Calls
- 1
- Events
- 0
- Errors
- 0
- Storage items
- 2
- Constants
- 1
Calls (extrinsics)
Timestamp.set
See [
Pallet::set].
ts
api.tx.timestamp.set(now: Compact<u64>)| Argument | Type | Doc |
|---|---|---|
now | Compact<u64> | T::Moment |
Call index: 0
Storage
Timestamp.Now
Current time for the current block.
ts
await api.query.timestamp.now()Returns: u64
Modifier: Default
Timestamp.DidUpdate
Did the timestamp get updated in this block?
ts
await api.query.timestamp.didUpdate()Returns: bool
Modifier: Default
Constants
Timestamp.MinimumPeriod
The minimum period between blocks. Beware that this is different to the expected period that the block production apparatus provides. Your chosen consensus system will generally work with this to determine a sensible block time. e.g. For Aura, it will be double this period on default settings.
Type: u64
SCALE-encoded value: 0xd007000000000000
Source: live chain metadata from
wss://root.rootnet.live/archive/ws · captured 2026-05-02