Function to retrieve blockhash of a certain (recent) block height

In Solidity, it’s blockhash(block_number)

I understand Solana is different; the blockhashes are the last entry ids of the block. But is there anything similar for Solana?

Hi @zelcon and welcome to the forum! :wave:

I’m not exactly sure how to do what you’re asking. It might be related to the RecentBlockhashes sysvar, but that seems to be deprecated so I’m not sure.

You can probably ask in the Solana discord, just be careful on Discord:

:warning: Warning: Telegram and Discord and other messaging platforms are a haven for people trying to scam you. Never give anybody your seed phrase or private key. Even support officials and admins will never ask for your seed phrase or private key. And never use a wallet app that you have not used before if somebody asks you to. They will fake a real wallet and use the fake wallet to steal all of your tokens.