O'Reilly logo

Truffle Quick Start Guide by Nikhil Bhaskar

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

The node run steps

  1. In a different Terminal window/tab, start a local blockchain by running ganache-cli.
  2. In another Terminal window, inside the truffle-node folder, run our main JavaScript file that we just added a few lines of code to. To do this, run node server.js (or use nodemon, if you have it installed).

Once you execute the node run steps, you should see accounts listed in your terminal console. In my screen, I see this:

[ '0x3D8e65c2d584f2683fA700014bF938ff97317073', '0x677773f02690D18a3BFd7ECb89d78D8B1f809050', '0xA5651169bfF12D014605C593C9F0C760375b3608', '0x69bB6D369171345aB349F66Bc8c5d2c127b537b4', '0x2Ef55358d31071f63aFec6e610C6c2c38dF9cD56', '0x39EB29716945D3f88650Bf0a96C8cDBb40c9d307', '0x35878EE4dd353b46Bd9Ab65d5e7B48cA625F997f', ...

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