Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Latest commit

 

History

History
75 lines (39 loc) · 1.56 KB

File metadata and controls

75 lines (39 loc) · 1.56 KB

2miners.js

axios

GitHub stars npm

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