Skip to main content

blockhash

Function blockhash 

Source
pub fn blockhash<IT: ITy, H: Host + ?Sized>(
    context: InstructionContext<'_, H, IT>,
) -> InstructionExecResult
Expand description

Implements the BLOCKHASH instruction.

Gets the hash of one of the 256 most recent complete blocks.