README
Last updated
Last updated
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
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
CDN
Bower
Component
Include web3.min.js
in your html file. (not required for the meteor package)
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.
web3.js version 0.14.0 supports multiple instances of the web3 object. To migrate to this version, please follow the guide:
Node.js
npm
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
LGPL-3.0+ © 2015 Contributors