GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - danakt/node-etherscan-api: Etherscan API for Node.js

BranchesTags
Open more actions menu

Latest commit

 

History

158 Commits
158 Commits

Folders and files

NameName
Last commit message
Last commit date
docs
docs
 
 
src
src
 
 
tests
tests
 
 
.eslintrc
.eslintrc
 
 
.gitignore
.gitignore
 
 
.npmignore
.npmignore
 
 
.travis.yml
.travis.yml
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
index.d.ts
index.d.ts
 
 
package.json
package.json
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

Node.js Etherscan API

npm Travis branch

Node.js package to interact with official Etherscan API

Documentation

API reference

The API reference was generated by JSDoc. If you use Typescript, you can use the more detailed reference found in the type declaration file

Install

$ npm install node-etherscan-api

Usage

const Etherscan = require('node-etherscan-api')

// Replace the value below with the your Etherscan token
const TOKEN_API = 'YourApiKeyToken'

// Creating the Etherscan instance
const etherscan = new Etherscan(TOKEN_API)

// Creating a request for account balance in Ether (default returns in Wei)
etherscan
  .getAccountBalance('0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae', 'eth')
  .then(balance => {
    // Working with the balance here
    console.log(balance)
  })
  .catch(err => {
    // Handle error here
    console.error(err)
  })

License

The MIT License (MIT)

Copyright © 2018 Danakt Frost

About

Etherscan API for Node.js

Topics

apiblockchainetherethereumetherscanetherscan-apinodejs

Resources

Readme
MIT license
Activity

Stars

12 stars

Watchers

1 watching

Forks

5 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.