New answers tagged logs
0
votes
How to log an event which emits state of the contract in nethereum?
I believe the problem is you are assuming your StateType enum is represented as int while by the solidity docs enums are mapped to the uint8 type. Consider also the fact that before solidity 0.8 enums ...
0
votes
ganache extract logs from reverted transaction?
Another way would be to use ganache-cli with the verbose flag:
--verbose
This would log the requests and responses.
Now, after you send your request, you will in the logs the response.
This latter ...
0
votes
eth_getLogs request works for Eth Mainnet, but not polygon mumbai. Error -32602, missing value for required argument 0
Figured it out by reading the docs more closely.
fromBlock [optional, default is "latest"] - hexadecimal block number, or the string "latest", "earliest" or "...
0
votes
How to get all historic changes of a state variable in a smart contract?
To add to @pabloruiz55 's answer, I wanted to suggest yet another alternative that I think is better than storing an array, as it is O(1) in the number of historical updates: use a backwards linked ...
Top 50 recent answers are included
Related Tags
logs × 193events × 98
web3js × 39
solidity × 34
go-ethereum × 27
transactions × 22
erc-20 × 11
contract-development × 10
filters × 10
contract-invocation × 9
receipts × 9
contract-design × 8
web3.py × 8
remix × 7
tokens × 7
openethereum × 7
bloom-filter × 7
nodejs × 6
contract-debugging × 6
json-rpc × 6
truffle × 5
blockchain × 5
javascript × 5
etherscan × 5
addresses × 5