paritytech/web3.js

Name: web3.js

Owner: Parity Technologies

Description: Ethereum Compatible JavaScript API

Forked from: ethereum/web3.js

Created: 2016-05-29 14:04:19.0

Updated: 2018-05-12 23:10:46.0

Pushed: 2016-05-29 14:05:26.0

Homepage: null

Size: 19621

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Migration 0.13.0 -> 0.14.0

web3.js version 0.14.0 supports multiple instances of web3 object. To migrate to this version, please follow the guide:

 web3 = require('web3');
 Web3 = require('web3');
 web3 = new Web3();

Ethereum JavaScript API

Join the chat at https://gitter.im/ethereum/web3.js

This is the Ethereum compatible JavaScript API which implements the Generic JSON RPC spec. It's available on npm as a node module, for bower and component as an embeddable js and as a meteor.js package.

NPM version Build Status dependency status dev dependency statusCoverage StatusStories in Ready

You need to run a local Ethereum node to use this library.

Documentation

Installation
Node.js
install web3
Meteor.js
or add ethereum:web3
As Browser module

Bower

r install web3

Component

onent install ethereum/web3.js
Usage

Use the web3 object directly from global namespace:

ole.log(web3); // {eth: .., shh: ...} // it's here!

Set a provider (HttpProvider)

.setProvider(new web3.providers.HttpProvider('http://localhost:8545'));

There you go, now you can use it:

coinbase = web3.eth.coinbase;
balance = web3.eth.getBalance(coinbase);

You can find more examples in example directory.

Contribute!
Requirements
 apt-get update
 apt-get install nodejs
 apt-get install npm
 apt-get install nodejs-legacy
Building (gulp)
run-script build
Testing (mocha)
test

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.