Coder Social home page Coder Social logo

bennie-elvambuena / etherscan-api-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bennie-elvambuena/etherscan-api

0.0 0.0 0.0 4.62 MB

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

Home Page: https://sebs.github.io/etherscan-api/

License: MIT License

JavaScript 100.00%

etherscan-api-1's Introduction

Etherscan API

Development of a NEXTGEN Version has started - please stand by

npm license GitHub tag Travis GitHub issues

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

use a own instance of axios

const axios = require('axios');
const {
  init,
  pickChainUrl
} = require('..');


const chain = pickChainUrl(null);
const client = axios.create({
  baseURL: chain,
  timeout: 10000
});

var api = init('apikey', null, 10000, client);

For testnet and L2s usage

Supported:

  • morden
  • ropsten
  • rinkeby
  • arbitrum
  • arbitrum_rinkeby

Latest

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

Install

npm install etherscan-api --save

API Documentation

Full Api Docs

Development workflow

  • npm test - runs tests
    • npm run posttest - starts the linter
  • npm run lint - preconfigured linter
  • npm run docs - generates the apidocs
  • npm run bundle - builds a new bundle
  • npm run preversion - Steps before we create a new Tag
    • lint
    • changelog
  • npm run pages - pushes generated apidocs to the server
  • postversion - after generating a new version, push the tag to the server
  • npm run changelog - generates a changelog and pushes it

etherscan-api-1's People

Contributors

sebs avatar m-tymchyk avatar jackbekket avatar dependabot[bot] avatar superern avatar jason-wanxt avatar jason-w123 avatar mochimisu avatar noriega3 avatar kaizvn avatar mvayngrib avatar carletex avatar catzilla avatar morrislaptop avatar dmitrypogodaev avatar muxa avatar peterferguson avatar dibrovadev avatar jsdelivrbot avatar tipsysquid avatar vicnaum 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.