Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ethplorer-js

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ethplorer-js

A promise based Nodejs library to interface with the Ethplorer API

  • 0.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

#ethplorer-js

A promise based Nodejs library to interface with the Ethplorer API

##Usage Import the Libary:

import { Ethplorer } from 'ethplorer-js';
// or
let Ethplorer = require('ethplorer-js').Ethplorer

To initialize:

let api = new Ethplorer('<Your Key Here>'); 
// or
let api = new Ethplorer(); // will use freekey instead

Then use any of the methods, described here. e.g

api.getTokenInfo(address)
    .then(data => {
    /*
     data is the object returned by the api
    */   
})

Any optional parameters can be passed as an optional argument. e.g

api.getTokenPriceHistoryGrouped(address,{ period: 30 })
    .then(data => {

})

// getTop doesn't have an initial argument so the first argument is the optional parameters
api.getTop({limit: 10})
    .then(data => {

})

If you're using Typescript all requests and responses are fully typed according to the Ethplorer API

FAQs

Package last updated on 23 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc