/zergpool.js

A JavaScript library for interacting with the Zergpool API

Primary LanguageJavaScriptMIT LicenseMIT

Zergpool.js

axios

GitHub stars npm

zergpool.js is a Node.js module that allows you to easily interact with the Zergpool API.

• Promise based

• Performant

• 100% coverage of the Zergpool API

• Handles server side limit on wallet and walletEx endpoints

Installation

• Download NPM and NodeJS

With GitHub :

• Download the project or clone it

• Go to the zergpool.js folder and do npm install

• Require the index.js

With NPM :

• Download the project

• Do npm install zergpool.js

• Require the library

Documentation

See the API documentation.

Example usage

Using the library

const { Client } = require("zergpool.js")

const client = new Client()

client.status().then(data => {
    console.log(data)
})

//OR

const myFunc = async () => {
    const data = await client.status()
    console.log(data)
}

myFunc()

The library is async, be sure to use async functions or .then()

Credits

Zergpool API

Copyright

See the license