User Tools

Site Tools


blockchain

This is an old revision of the document!


Blockchain

Tool Set Install

  1. Metamask Chrome extension.
  2. (Visual Studio Code)
  3. NodeJS
  4. [Admin PowerShell] Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
  5. Chocolately
  6. [Admin PowerShell] choco install git -params "/GetAndUnixToolsOnPath"
  7. [Admin PowerShell] git config --system http.sslverify false
  8. [Admin PowerShell] npm install -g node-gyp
  9. [Admin PowerShell] npm install --global --production windows-build-tools
  10. [Admin PowerShell] npm install -g ethereumjs-testrpc
  11. [Admin PowerShell] npm install -g truffle

Commands

truffle init Set up project.
testrpc Start RPC.
truffle comp Compile everything.
truffle migrate Deploy everything.
truffle console Console mode (to interact with contract).
[Truffle Console] var hw Create a variable to reference our contract.
[Truffle Console] HelloWorld.deployed().then(function(deployed){hw=deployed;}); Get the reference (note that it is async).
[Truffle Console] hw.SayHello.call() Call a method on the contract.
blockchain.1505982241.txt.gz · Last modified: 2017/09/22 09:24 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki