Skip to main content

extract_block_hash

Function extract_block_hash 

Source
pub fn extract_block_hash(log: &RpcLog) -> Result<Option<B256>>
Expand description

Extracts the block hash from an RPC log.

Returns None for pending logs, which carry no block hash.

ยงErrors

Returns an error if the reported block hash is not valid 32-byte hex.