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.jsarrow-up-right

This is the Ethereum compatible JavaScript APIarrow-up-right which implements the Generic JSON RPCarrow-up-right spec. It's available on npm as a node module, for Bower and component as embeddable scripts, and as a meteor.js package.

NPM versionarrow-up-right Build Statusarrow-up-right dependency statusarrow-up-right dev dependency statusarrow-up-right Coverage Statusarrow-up-right Stories in Readyarrow-up-right

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 Authenticationarrow-up-right):

There you go, now you can use it:

You can find more examples in the examplearrow-up-right directory.

Migration from 0.13.0 to 0.14.0

web3.js version 0.14.0 supports multiple instances of the web3arrow-up-right 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