Timeline for Web3js events "fromBlock: 0" doesnt work
Current License: CC BY-SA 4.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 4, 2020 at 11:17 | vote | accept | VladoDemcak | ||
Jun 4, 2020 at 11:17 | answer | added | VladoDemcak | timeline score: 0 | |
May 19, 2020 at 2:01 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Mar 26, 2020 at 6:02 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Feb 27, 2020 at 12:23 | comment | added | VladoDemcak |
@sfmiller940 yes. didnt work... looks like there is a bug with connection in websocket provider for subscription in general. More details here github.com/ethereum/web3.js/issues/3389
|
|
Feb 27, 2020 at 0:49 | comment | added | sfmiller940 |
Have you tried using a callback function with contract.events.allEvents ?
|
|
Feb 24, 2020 at 6:41 | answer | added | Jitendra Kumar. Balla | timeline score: 0 | |
Feb 23, 2020 at 18:21 | comment | added | VladoDemcak |
@goodvibration Thanks a lot for your comment. I tried set it to different numbers. If the latest number is smaller than fromBlock it doesnt return any event. However when I set fromBlock to something smaller than current latest block (let's say 10) it always return the previous one (in this example block 9). I also tried converting to hex with web3.utils.toHex(<fromBlock>) but it didnt help as well
|
|
Feb 23, 2020 at 16:53 | comment | added | goodvibration |
It actually depends on which node you're using I believe. For example, infura doesn't throw an exception on block 0, but alchemy does. Just set fromBlock to 1.
|
|
Feb 23, 2020 at 10:45 | review | First posts | |||
Feb 23, 2020 at 12:00 | |||||
Feb 23, 2020 at 10:44 | history | asked | VladoDemcak | CC BY-SA 4.0 |