Skip to main content

BlockHash What function from web3to use to get and cache the latest blockhash with the @solana/web3.js library?

I found the following YouTube shortfollowing YouTube short on the official Solana channel: https://www.youtube.com/watch?v=-hvCSuCauCA.

At 0:20 min you can see a part of his code where he uses aand caches the result from the BlockHash function. 

Unfortunately, I'm not able to find anything about this function. Neither in the docs (https://solana-labs.github.io/solana-web3.js/)the docs nor when I search the repository on Githubthe repository on GitHub.

Does someone know where I can find more information about this function?

BlockHash function from web3.js library

I found the following YouTube short on the official Solana channel: https://www.youtube.com/watch?v=-hvCSuCauCA

At 0:20 min you can see a part of his code where he uses a BlockHash function. Unfortunately I'm not able to find anything about this function. Neither in the docs (https://solana-labs.github.io/solana-web3.js/) nor when I search the repository on Github.

Does someone know where I can find more information about this function?

What function to use to get and cache the latest blockhash with the @solana/web3.js library?

I found the following YouTube short on the official Solana channel.

At 0:20 min you can see a part of his code where he uses and caches the result from the BlockHash function. 

Unfortunately, I'm not able to find anything about this function. Neither in the docs nor when I search the repository on GitHub.

Does someone know where I can find more information about this function?

Source Link

BlockHash function from web3.js library

I found the following YouTube short on the official Solana channel: https://www.youtube.com/watch?v=-hvCSuCauCA

At 0:20 min you can see a part of his code where he uses a BlockHash function. Unfortunately I'm not able to find anything about this function. Neither in the docs (https://solana-labs.github.io/solana-web3.js/) nor when I search the repository on Github.

Does someone know where I can find more information about this function?