This project contains tools for using the Web3 application programming interface on top of the Aion network.
-
Node.js version 8.9.1
Download: https://nodejs.org/en/download/
Check version by runningnode -v
in a terminal. -
npm version 5.5.1
Typically included with node installation.
Check version by runningnpm -v
in a terminal.
Note: Other versions may work, but have not been thoroughly tested at present.
git clone https://github.com/aionnetwork/aion_web3
cd aion_web3
npm install
or
npm install --save aion-web3-core
This application programming interface can be used to perform different operation on the Aion blockchain. Some example uses cases are available in the project wiki.
- Web use:
Runnpm run browserify
to producedist/web3.min.js
and include it in your html file - Node use:
var Web3 = require('aion-web3-core') var web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
var coinbase = web3.eth.coinbase;
var balance = web3.eth.getBalance(coinbase);