Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@parity/etherscan

paritytech407GPL-3.02.1.3

The Parity Promise-based library for interfacing with Etherscan over HTTP

Ethereum, ABI, API, RPC, Parity, Promise

readme

@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/paritytech/js-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()