crypto-idle-miner.js
v2.1.0
Published
A JavaScript library for interacting with the Crypto Idle Miner API
Downloads
12
Readme
Crypto Idle Miner.js
crypto-idle-miner.js is a Node.js module that allows you to easily interact with the Hora Games API.
• Promise based
• Performant
• 100% coverage of the Hora Games API
• Only available library at this time
Installation
With GitHub :
• Download the project or clone it
• Go to the crypto-idle-miner.js folder and do npm install
• Require the index.js
With NPM :
• Download the project
• Do npm install crypto-idle-miner.js
• Require the library
Documentation
See the API documentation for list of methods and properties.
Example usage
How to get your token
const { Client } = require("crypto-idle-miner.js")
const client = new Client()
client.authenticate()
This will runs a tiny tool in your console to help you get your account token.
Using the library
const { Client } = require("crypto-idle-miner.js")
const client = new Client("token")
client.user().then(data => {
console.log(data)
})
//OR
const myFunc = async () => {
const data = await client.user()
console.log(data)
}
myFunc()
The library is async, be sure to use async functions or .then()
Credits
Copyright
See the license