Skip to main content

blockhash

Function blockhash 

pub fn blockhash<IT, H>(
    context: InstructionContext<'_, H, IT>,
) -> Result<(), InstructionResult>
where IT: InterpreterTypes, H: Host + ?Sized,
Expand description

Implements the BLOCKHASH instruction.

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