49fdd23d58
* Move secureApi to shell * Extract isTestnet test * Use mobx + subscriptions for status * Re-add status indicator * Add lerna * Move intial packages to js/packages * Move 3rdparty/{email,sms}-verification to correct location * Move package.json & README to library src * Move tests for library packages * Move views & dapps to packages * Move i18n to root * Move shell to actual src (main app) * Remove ~ references * Change ~ to root (explicit imports) * Finalise convert of ~ * Move views into dapps as well * Move dapps to packages/ * Fix references * Update css * Update test spec locations * Update tests * Case fix * Skip flakey tests * Update enzyme * Skip previously ignored tests * Allow empty api for hw * Re-add theme for embed
35 lines
726 B
Markdown
35 lines
726 B
Markdown
# @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/parity/tree/master/js/packages/3rdpartyetherscan](https://github.com/paritytech/parity/tree/master/js/packages/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()`
|