README

WARNING: 2.X IS NO LONGER BEING MAINTAINED AND WILL BE DEPRECATED FROM NPM

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 embeddable scripts, and as a meteor.js package.

NPM version Build Status dependency status dev dependency status Coverage Status Stories in Ready

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

Documentation

Table of Contents

  • Installation

    • Node.js

    • Yarn

    • Meteor.js

    • As a Browser module

  • Usage

    • Migration from 0.13.0 to 0.14.0

  • Contribute!

    • Requirements

    • Building (gulp)

    • Testing (mocha)

    • Community

    • Other implementations

  • License

Installation

Node.js

Yarn

Meteor.js

As a Browser module

CDN

Bower

Component

  • Include web3.min.js in your html file. (not required for the meteor package)

Usage

Use the web3 object directly from the global namespace:

Set a provider (HttpProvider):

Set a provider (HttpProvider using HTTP Basic Authentication):

There you go, now you can use it:

You can find more examples in the example directory.

Migration from 0.13.0 to 0.14.0

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

Contribute!

Requirements

  • Node.js

  • npm

Building (gulp)

Testing (mocha)

Community

Other implementations

License

LGPL-3.0+ © 2015 Contributors

Last updated