good evening everyone 👋
someone know ‘blockhash’ equivalent or web3 python?

i have the folliwing line of code in smart contract:

uint256 blockValue = uint256(blockhash(block.number.sub(1)));

i want to replicate this blockValue value in my local environment (brownie), anybody knows the python equivalent to calculate this value? of course, i know how to get blocknumber and substract 1. but what about blockhash function?

Feb 13, 2022, 10:31 PM

© 2024 Draquery.com All rights reserved.