1.0.1 • Published 3 years ago

2miners.js v1.0.1

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

2miners.js

Made with axios

GitHub stars

2miners.js is a Node.js module that allows you to easily interact with the 2miners API.

• Promise based

• Performant

• 100% coverage of the 2miners API

Installation

• Download NPM and NodeJS

With GitHub :

• Download the project or clone it

• Go to the 2miners.js folder and do npm install

• Require the index.js

With NPM :

• Download the project

• Do npm install 2miners.js

• Require the library

Documentation

See the API documentation.

Example usage

Using the library

const { Client } = require("2miners.js")

const client = new Client("pool") //example : ETH or solo-ETH

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

//OR

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

myFunc()

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

Credits

2miners API

Copyright

See the license