February 2018
Intermediate to advanced
320 pages
9h 56m
English
In Chapter 10, we introduced the development steps for writing a smart contract. Now that the contract is fully written, let’s deploy it to our test chain, and interact with it.
node deploy.js ethereum && node debug.js ethereum
Fix any errors that pop up during compilation, then run the deployment again if necessary. If everything worked properly, you should see the interactive prompt pop up. Let’s run a couple of test functions to make sure our contract is working.

The first line creates a UNIX timestamp 1 hour (3600s) in the future. The JavaScript Date type ...
Read now
Unlock full access