Trait concordium_std::HasChainMetadata
source · pub trait HasChainMetadata {
// Required method
fn slot_time(&self) -> SlotTime;
// Provided method
fn block_time(&self) -> Timestamp { ... }
}
Expand description
Objects which can access chain metadata.
Required Methods§
Provided Methods§
sourcefn block_time(&self) -> Timestamp
fn block_time(&self) -> Timestamp
Get time in milliseconds at the beginning of this block.