From 4def0958d35cb5b8d92d277423af4d435dd89f16 Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Fri, 10 Apr 2015 00:27:47 +0200 Subject: [PATCH] updated README.md --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e9eca41..99afaf5 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ You need to run a local ethrereum node to use this library. ### Node.js - $ npm install ethereum.js + $ npm install web3 ### Meteor.js @@ -26,20 +26,24 @@ You need to run a local ethrereum node to use this library. ### As Browser module Bower - $ bower install ethereum.js + $ bower install web3 Component - $ component install ethereum/ethereum.js + $ component install ethereum/web3.js * Include `ethereum.min.js` in your html file. (not required for the meteor package) * Include [bignumber.js](https://github.com/MikeMcl/bignumber.js/) (not required for the meteor package) ## Usage -Require the library (not required for the meteor package): +You can require the library (not required for the meteor package): var web3 = require('ethereum.js'); +Or use it directly from global namespace: + + console.log(web3); // {eth: .., shh: ...} // it's here! + Set a provider (QtSyncProvider, HttpProvider) web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545'));