pub trait TimestampApi<Block: BlockT>: Core<Block> {
// Provided method
fn domain_timestamp(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
) -> Result<Moment, ApiError> { ... }
}
Expand description
Api that returns the timestamp
Provided Methods§
Sourcefn domain_timestamp(
&self,
__runtime_api_at_param__: <Block as BlockT>::Hash,
) -> Result<Moment, ApiError>
fn domain_timestamp( &self, __runtime_api_at_param__: <Block as BlockT>::Hash, ) -> Result<Moment, ApiError>
Api to construct inherent timestamp extrinsic from given time