Code Monkey home page Code Monkey logo

etherscan-api's Introduction

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

etherscan-api's People

Contributors

jackbekket avatar sebs avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.