[][src]Trait concordium_std::HasChainMetadata

pub trait HasChainMetadata {
    pub fn slot_time(&self) -> SlotTime;
pub fn block_height(&self) -> BlockHeight;
pub fn finalized_height(&self) -> FinalizedHeight;
pub fn slot_number(&self) -> SlotNumber; }

Objects which can access chain metadata.

Required methods

pub fn slot_time(&self) -> SlotTime[src]

Get time in milliseconds at the beginning of this block.

pub fn block_height(&self) -> BlockHeight[src]

Get block height of the current block.

pub fn finalized_height(&self) -> FinalizedHeight[src]

Get the height of the last finalized block, i.e., block to which the current block has a finalized pointer to.

pub fn slot_number(&self) -> SlotNumber[src]

Get the slot number of the current block.

Loading content...

Implementors

impl HasChainMetadata for ChainMetaTest[src]

Loading content...