loom_rpc_handler::handler::blocks

Function latest_block

Source
pub async fn latest_block<DB: DatabaseRef + Send + Sync + Clone + 'static>(
    __arg0: State<AppState<DB>>,
) -> Result<Json<BlockHeader>, (StatusCode, String)>
Expand description

Get latest block

Get the latest block header