etherscan
Node.js library for communicating with the Etherscan API.
Installation
$ npm i request$ npm i etherscan
request
is defined as a peer-dependency and thus has to be installed separately.
Testing
$ npm test
Import
Using CommonJS
Requirements (Node.js >= 8.0.0).
const Etherscan = ;
Using ESM
Use --experimental-modules flag and .mjs extension (Node.js >= 8.6.0).
;
Usage
; const etherscan = API_KEY; // Some methods working without API_KEY async { const data = await etherscan;};
API
Accounts
getEtherBalance
Get Ether balance for a single address.
etherscan;
getEtherBalanceMulti
Get Ether balance for multiple addresses in a single call.
etherscan;
getTxList
Get a list of normal
transactions by address.
etherscan;
getTxListInternal
Get a list of internal
transactions by address.
etherscan;