Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: danakt/node-etherscan-api
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: microftech65/node-etherscan-api
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Jan 19, 2020

  1. Create node-etherscsn-api

    etherscan.io node
    microftech65 authored Jan 19, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    409f22b View commit details

Commits on Jan 20, 2020

  1. Create microftech65 nodejs.yml

    Contract Source Code Verified
    Contract Name: New Token
    Compiler Version: vo.5.14+commit 1f1aaa4
    Optimization: No  with 200runs
    Other settings:: default evmVersion,None license
    microftech65 authored Jan 20, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d035a63 View commit details
Showing with 92 additions and 0 deletions.
  1. +26 −0 .github/workflows/microftech65nodejs.yml
  2. +66 −0 microftech/node-etherscsn-api
26 changes: 26 additions & 0 deletions .github/workflows/microftech65nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Node CI

on: [push]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [8.x, 10.x, 12.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm ci
npm run build --if-present
npm test
env:
CI: true
66 changes: 66 additions & 0 deletions microftech/node-etherscsn-api
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
@microftech65 /
node-etherscan-api
Insights
Etherscan API for Node.js
ethereum
etherscan
etherscan-api
api
nodejs
ether
blockchain
MIT
@microftech65
danakt Merge pull request #3 from danakt/dependabot/npm_and_yarn/handlebars-… …
Latest commit
Latest commit message Commit time
docs Update API reference for new parameters logic
src Throwing an error with null result years
tests Update parameters logic
.eslintrc Remove rest typescript signs
.gitignore Ignore yarn-error.log to ignore
.npmignore Update npmignore
.travis.yml Add .travis.yml file
LICENSE.md Add License
README.md Update readme
index.d.ts Update parameters logic
package.json v0.1.3 6
yarn.lock Bump handlebars from 4.1.2 to 4.5.3 22
README.md
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('0x52bc44d5378309EE2abF1539BF71dE1b7d7bE3b5bae', '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- 2045 QDRBTCPSJBDC MICROCHIP SMART CONTRACT.™
All Rights Reserved.