README
WARNING: 2.X IS NO LONGER BEING MAINTAINED AND WILL BE DEPRECATED FROM NPM
Ethereum JavaScript API
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.
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
Python Web3.py
Haskell hs-web3
Java web3j
Scala web3j-scala
Purescript purescript-web3
PHP web3.php
PHP ethereum-php
Rust rust-web3
Swift web3swift
License
LGPL-3.0+ © 2015 Contributors
Last updated