Created
May 19, 2016 17:04
-
-
Save mattosborn/a36db54c49e27a5dca5487cdc754b67f to your computer and use it in GitHub Desktop.
web3 hello world
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Web3 = require('web3'); | |
var web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")); | |
console.log( web3.eth.getBlock('latest') ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment