2miners.js
使用
2miners.js 是一个 Node.js 模块,可让您轻松地与 2miners API 进行交互.
• 基于承诺
• 性能
• 100% 覆盖 2miners API
Installation
• 下载 NPM 和 NodeJS
使用 GitHub:
• 下载项目或克隆它
• 转到 2miners.js 文件夹并执行 npm install
• 需要 index.js
使用 NPM:
• 下载项目
• 执行 npm install 2miners.js
• 需要库
Documentation
请参阅 API 文档。
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()
该库是异步的,请务必使用异步函数或.then()
Credits
2miners API
Copyright
查看许可证
2miners.js
Made with
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