Skip to content

searchthel0ve/etherscan-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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('KMK786MB5AZYQSFS5CW3JQ9AAW4DCX3AX4');
var balance = api.account.balance('0xbb9bc244d798123fde783fcc1c72d3bb8c189413');
balance.then(function(balanceData){
  console.log(balanceData);
});

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

About

A node.js wrapper for the etherscan api to fetch data and metadata from the ethereum blockchain

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%