With web3
, it is possible to call a method of a smart contract at a specific block :
myContract.methods.methodName().call(transactionObject, blockNumber, callback)
Is there a way to call it after a specific tx in a specific block ?
Why do I want to do that ?
I would like to fetch the state of a specific variable. In the case multiple transactions interact with the same smart contract, I can only get the state of that specific variable at the last executed transaction of the block. However, I would like to be able to fetch the variation of this variable inside the block and in-between 2 transaction that are interacting with the same smart contract and changing the state.
I'm open to any idea, including without using web3