pub fn block_header_hash(block_height: u32) -> Result<b256, BlockHashError> 
Expand description

Get the header hash of the block at height block_height

Returns

  • [Result<b256, BlockHashError>] - The header hash of the block at block_height, or a [BlockHashError] if the block is not found.

Examples

use std::block::block_header_hash;

fn foo() {
    let header_hash_of_block_100 = block_header_hash(100u32);
    log(header_hash_of_block_100);
}