A node.js wrapper for the etherscan api to fetch data and metadata from the ethereum blockchain
JavaScript
Latest commit 61980eb Jan 27, 2017 @sebs bundle
Permalink
Failed to load latest commit information.
dist bundle Jan 27, 2017
docs clean Jan 18, 2017
lib minor bug fixes Jan 18, 2017
scripts Add pages script Oct 8, 2016
test
.gitignore Initial commit Oct 3, 2016
.jshintrc Initial commit Oct 3, 2016
.travis.yml Initial commit Oct 3, 2016
Readme.md Update README.md Jan 18, 2017
index.js (docs): api docs Oct 6, 2016
jsdoc.json (feature): tracking for docs Oct 13, 2016
package.json 2.3.0 Jan 27, 2017
test-do.md testnet all test passes Jan 18, 2017

Readme.md

Etherscan API

npm version Build Status npm

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

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

For testnet usage

var api = require('etherscan-api').init('YourApiKey','testnet');

This feature are NOT shipped to npm package yet!! to use this feature - include exactly this version of repo.

Install

 npm install etherscan-api --save

Api

Full Api Docs

  • block.getblockreward
  • transaction.getstatus
  • contract.getabi
  • account
    • getminedblocks
    • tokenbalance by name
    • tokenbalance by address
    • txlist
    • txlistinternal
    • balance
    • balance multi
  • stats
    • ethsupply
    • tokensupply by tokenname
    • tokensupply by address
    • ethprice
  • proxy
    • proxy.eth_blockNumber
    • proxy.eth_getBlockByNumber
    • proxy.eth_getUncleByBlockNumberAndIndex
    • proxy.eth_getBlockTransactionCountByNumber
    • proxy.eth_getTransactionByHash
    • proxy.eth_getTransactionByBlockNumberAndIndex
    • proxy.eth_getTransactionCount
    • proxy.eth_sendRawTransaction
    • proxy.eth_getTransactionReceipt
    • proxy.eth_call
    • proxy.eth_getCode
    • proxy.eth_getStorageAt
    • proxy.eth_gasPrice
    • proxy.eth_estimateGas