Function eei::ethereum_getBlockHash[][src]

pub unsafe extern "C" fn ethereum_getBlockHash(number: i64, hash_ptr: *mut Hash)
Expand description

Gets the hash of a recent block.

Arguments:

  • number: The index of the last 256 blocks to load the hash of.
  • hash_ptr: The memory location to load the hash into. Note: the hash memory value will not change if a failure occurs.