© Wei-Meng Lee 2019
W.-M. LeeBeginning Ethereum Smart Contracts Programminghttps://doi.org/10.1007/978-1-4842-5086-0_9

9. Smart Contract Events

Wei-Meng Lee1 
(1)
Ang Mo Kio, Singapore
 
In the previous chapter, you saw how to use web3.js to interact with your deployed Smart Contract. Using web3.js, you were able to connect to an Ethereum node (through MetaMask, or directly to an Ethereum node such as Ganache running locally on your computer). Using the document notarizer example, you were able to
  • Send a string to the Smart Contract through the web front end for storing its hash on the blockchain

  • Send Ethers to the Smart Contract to pay for the notarization service

  • Verify if a string’s hash has been previously stored on the blockchain

However, there are ...

Get Beginning Ethereum Smart Contracts Programming: With Examples in Python, Solidity, and JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.