hi does anyone know how to watch logs of concrete transaction through code?

Jun 12, 2022, 6:11 PM
you mean listen to an event?
Jun 12, 2022, 7:07 PM
I mean I have a transaction and I want to get its logs
It’s not listening because transaction might have already been completed
Jun 12, 2022, 7:08 PM
you can query logs using ethersjs
Jun 12, 2022, 7:08 PM
Can I query from web3 library?
Jun 12, 2022, 7:08 PM
but its pretty stupid because they have a limit of 5000 blocks
yeah they have it too
Jun 12, 2022, 7:09 PM
How do I do that?
Jun 12, 2022, 7:09 PM
i would google how to query logs using web3Js, i dont use that library so idk
Jun 12, 2022, 7:10 PM
Ok thx
Jun 12, 2022, 7:10 PM
You can look into using moralis too if your project really needs to grab a lot of events
Jun 12, 2022, 7:10 PM
Isn’t it a node provider how will it help me
Jun 12, 2022, 7:11 PM
https://docs.moralis.io/moralis-dapp/database/queries
Jun 12, 2022, 7:13 PM

© 2024 Draquery.com All rights reserved.