0.1.3 • Published 5 years ago

node-eospark-api v0.1.3

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Node.js EosPark API

Node.js package to interact with official EosPark 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

This library and codestyle is based on node-etherscan-api by Danakt Frost;

Install

$ npm install node-eospark-api

Usage

const EosparkConnect = require("node-etherscan-api");

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

// Creating the EosPark instance
const eospark = new EosparkConnect(TOKEN_API);

// Creating a request for account balance in Ether (default returns in Wei)

eospark
  .getAccountInfo("eosknightsio")
  .then(result => {
    // Working with the account data here
    console.log(balance);
  })
  .catch(err => {
    // Handle error here
    console.error(err);
  });

License

The MIT License (MIT)

Copyright © 2018 Evan Tolstoff