etherscan-api

Etherscan API

npm«««< patch-5

«««< patch-4

master license GitHub tag Travis GitHub issues «««< patch-5 ======= ======= license GitHub tag Travis GitHub issues master master

A way to access the etherscan.io api using promises. Fetch a diverse set of information about the blockchain.

Mainnet

var api = require('etherscan-api').init('YourApiKey');
var balance = api.account.balance('0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae');
balance.then(function(balanceData){
  console.log(balanceData);
});

Example in the wild

For testnet usage

Supported:

Latest

// apikey, network, timeout
var api = require('etherscan-api').init('YourApiKey','rinkeby'. '3000');

Install

 npm install etherscan-api --save

API Documentation

«««< patch-5 Full Api Docs ======= «««< patch-4 Full Api Docs ======= Full Api Docs

master master

Development workflow