NAV Navbar
javascript

Create Account Example

Install

$ npm install

Run

$ node createAccount.js

Source Files

Send Transaction CLI Example

Install

$ npm install

Run


$ node createAccount.js

$ node sendTransaction.js

Source Files

Deploy a Contract Example

Install

$ npm install

Run


$ node createAccount.js

$ node sendTransaction.js

$ node deployContract.js

Source Files

Call a Contract CLI Example

Install

$ npm install

Run

$ node createAccount.js

$ node sendTransaction.js

$ node deployContract.js

$ node callContract.js

Source Files

Meterify + React

Install

$ git clone https://github.com/meterio/hackathon-demo-react.git

$ cd hackathon-demo-react.git

$ npm install

Run

$ npm start

Web UI

After starting the application, open http://localhost:3000 in a web browser.

Tips

  1. Private key and public address are stored at the browser. Type localStorage.getItem('private.key') and localStorage.getItem('public.address') in the console to retrieve them.
  2. ABI definition is pre-built. There is no solidity compilation included in this demo. (the solc library occupies too much memory and it causes failure)
  3. this.setState is not available in every then function provided by web3.