sparkpool.com nodejs api client
npm install node-sparkpool
import Sparkpool from 'node-sparkpool'
const client = Sparkpool()
// if you want use diffent endpoint
const client2 = Sparkpool({
endpoint: 'https://www.sparkpool.com',
timeout: 5000 // http request timeout
})
client.poolStats().then(data => console.log(data))