Web3 Tutorial: the 3 ways to listen to smart contract events

EatTheBlocks
EatTheBlocks
30.8 هزار بار بازدید - 5 سال پیش - FREE MASTERCLASS "Get Into Web3
FREE MASTERCLASS "Get Into Web3 In a Bear Market"
👉 Link: https://eattheblocks.com/masterclass
👉 Full roadmap to learn Web3 Development & get a 6 figure remote job
👉 EVEN during this bear market

There are 3 ways to listen to events with Web3:
- if you created the event, with the transaction receipt
- if you want to read events already emitted, use getPastEvents()
- if you want to receive events in real-time, use contract.events.EventName()

Watch this tutorial to know how to listen to smart contract events with Web3

Full Web3 Tutorial Series: Web3 Tutorial: Introduction for Begin...
5 سال پیش در تاریخ 1398/09/23 منتشر شده است.
30,849 بـار بازدید شده
... بیشتر