When I read event logs like this:

myContract.getPastEvents('myEventLogName', {
    fromBlock: 0,
    toBlock: 'latest'
    console.log(events) // same results as the optional callback above

I get the following message at the end:

... 8 more items ]

How can I read really ALL event logs?

  • 2
    That sounds more like a JS truncation. Try looping over the result array and printing each event individually – Raghav Sood Sep 14 '18 at 16:22
  • event and log are the same thing. Explorer's call them events, EVM calls them logs. – Nulik Sep 14 '18 at 17:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.