Skip to content

Commit

Permalink
Updated JavaScript API (markdown)
Browse files Browse the repository at this point in the history
  • Loading branch information
frozeman committed Oct 19, 2015
1 parent 518e825 commit dbb396d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion JavaScript-API.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,10 @@ The `web3` object provides all methods.
##### Example

```js
var web3 = require('web3')
var Web3 = require('web3');
// create an instance of web3 using the HTTP provider.
// NOTE in mist web3 is already available, so check first if its available before instantiating
var web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
```

***
Expand Down

0 comments on commit dbb396d

Please sign in to comment.