Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 1.06 KB

14.md

File metadata and controls

29 lines (23 loc) · 1.06 KB
title actions requireLogin material
Putting Everything Together
checkAnswer
hints
true
terminal
help commands
You should probably run `node Client.js`.
node Client.js
hint output
node Client.js
* New PriceUpdated event. ethPrice: 163140000000000000000 * New PriceUpdated event. ethPrice: 163200000000000000000 * New PriceUpdated event. ethPrice: 163020000000000000000 * New PriceUpdated event. ethPrice: 163000000000000000000

Phew... the moment of truth has arrived: let's put the pieces of the puzzle together and see how this works.

We went ahead and started the oracle by running node EthPriceOracle.js.

Now, it's your turn.

Put It to the test

  1. Fire up a terminal window, and start the client by entering the following command: node Client.js.

See how fast the price gets updated😉! Well... this is just a simulation, but our blockchain is pretty fast too. Be sure to try it out yourself!