Interacting with an Ethereum smart contract

Check the address of the current deployed contract Remember when you mined your contract, it told your its address. Now, reuse it! eth.getCode("0x5f3425ccedeae0eb36521c4cf93ec6544dbad9bd") Test the contract with a simple interaction get the latest web3-light.min.js js from https://github.com/ethereum/web3.js/releases and simply copy the dist/web3-light.min.js into the same folder as the following HTML file. then, use this html to interact with your contract on the local node: <!doctype> <html> <head> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bignumber.js/2.4.0/bignumber.min.js"></script> <script type="text/javascript" src="....

August 3, 2016 · 2 min · Me

javascript dev environment setup

NodeJS Go to the nodejs website and install nodejs latest stable version: https://nodejs.org/en/download/stable/ NPM Go to the npm website and follow the instructions https://docs.npmjs.com/getting-started/installing-node Install nodejs essential packages npm install -g eslint webpack webpack-dev-server babel-eslint serve Install sublime-text essential plugins With the help of the package manager, in sublime-text, install the following packages: babel, Sublime-Linter-Contrib-eslint, React ES6 snippets Make sure your linter is working In sublime text, open the console (view > show console) and check if there is any error message....

March 10, 2016 · 1 min · Me