«««< patch-4
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);
});
Supported:
Latest
// apikey, network, timeout
var api = require('etherscan-api').init('YourApiKey','rinkeby'. '3000');
npm install etherscan-api --save
«««< patch-5 Full Api Docs ======= «««< patch-4 Full Api Docs ======= Full Api Docs
master master