openethereum/js/npm/etherscan/README.md
Jaco Greeff 36b8e4b6a8 Extended publishing of libraries to npm (#3786)
* Extended publishing of libraries to npm

* Update source links

* Add some tests before publishing NPM library

* Fix Shapeshift tests
2016-12-11 10:13:34 +01:00

720 B

@parity/Etherscan

A thin, lightweight promise wrapper for the api.etherscan.io/apis service, exposing a common endpoint for use in JavaScript applications.

https://github.com/ethcore/parity/tree/master/js/src/3rdparty/etherscan

usage

installation -

npm install --save @parity/Etherscan

Usage -

const etherscan = require('@parity/Etherscan');

// api calls goes here

api

account (exposed on etherscan.account) -

  • balance(address)
  • balances(addresses) (array or addresses)
  • transactions(address, page) (page offset starts at 0, returns 25)

stats (exposed on etherscan.stats) -

  • price()
  • supply()