Skip to content

getminera/node-cgminer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-cgminer

Forked from: node-cgminer

Usage

CGMiner command return a Promises/A compatible promise (specifically a Q promise):

var client = new CGMinerClient({host: HOST, port: PORT, timeout: TIMEOUT});
client.cmd(COMMAND, ARG1, ARG2).then(function(results) {
  console.log(results);
}, function(err) {
  // error handler
});

COMMAND corresponds to one of the commands detailed in CGMiner's API documentation.

About

API client for CGMiner Bitcoin miner

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%