O'Reilly logo

Blockchain: A Practical Guide to Developing Business, Law, and Technology Solutions by Michael Wuehler, Solomon Lederer, Rene Madsen, Kedar Iyer, Paul R. Allen, Joseph J. Bambara

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

11   Deploying the Sample Application: Blockchain and Betting

Deploying Full Contract

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.

Images

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required