updated README.md

This commit is contained in:
Marek Kotewicz 2015-04-10 00:27:47 +02:00
parent 15b4dbdbd5
commit 4def0958d3
1 changed files with 8 additions and 4 deletions

View File

@ -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'));