pub async fn fetch_state_tip_and_local_time<State>(
    state: State
) -> Result<GetBlockTemplateChainInfo>
where State: Service<ReadRequest, Response = ReadResponse, Error = BoxError> + Clone + Send + Sync + 'static,
Expand description

Returns the state data for the block template.

You should call check_synced_to_tip() before calling this function. If the state does not have enough blocks, returns an error.