title: How can I get the current blockhash inside a Solana program function?
body: <p>In Solidity, it's possible to use <code>block.number</code> and <code>blockhash(uint blockNumber) returns (bytes32)</code> to obtain the current blockhash from inside a function. I need do the same thing inside a Solana program. I'm using Anchor.</p>
  <p>I went through Anchor docs and found a (deprecated) method to get recent blockhashes, but not the current blockhash. I've also tried finding similar projects that might rely on the current blockhash, but I haven't found anything yet.</p>
  <p>Is it possible to access the current block hash from inside a Solana program function?</p>