Tutorial

Event Handling & Signatures with Ethers.js

8 steps

In this tutorial, we’ll go through what events are in Solidity smart contracts and what we can do with them. We’ll also code a backend that can listen to smart contract events using the ethers.js library. Lastly, we’ll cover what signatures are and even learn how to sign a message with a private key.

Helpful prior knowledge

nil


Learning Outcomes

By the end of this tutorial, you will be able to:

  • Describe the concept of events in Solidity smart contracts
  • Use ethers.js to listen to events occurring in the blockchain
  • Use advanced filtering techniques in ethers.js
  • Describe signatures in Ethereum

Tutorial Steps

Total steps: 8

  • Step 1: What are Events
  • Step 2: The Purpose of Events
  • Step 3: Common Event Methods
  • Step 4: Listening to Events
  • Step 5: Advanced Event Filtering
  • Step 6: What are Signatures
  • Step 7: Signing a Message
  • Step 8: Conclusion

Help Center Support?

Find articles to support you through your journey or chat with our support team.

Help Center