JayDDee / cpuminer-opt

Optimized multi algo CPU miner
Other
765 stars 543 forks source link

How to use the api ? #335

Closed iangregsondev closed 2 years ago

iangregsondev commented 2 years ago

Hi,

I am using a really outdated cpuminer and found this :-)

One thing that really interests me is that this appears to have an API, but I am unable to find any documentation of how to use it.

It would be nice to be able to interrogate the cpuminer via an API and also maybe receive updates of when the miner disconnects or things of that nature..

Is there some API docs of how to use it

Thanks.

JayDDee commented 2 years ago

It jus has a simple tcp socket, imported from cpuminer-multi. A simple telnet connection will work. Telnet to the port and type help for a list of avalaible commands, it's a very short list.

I've neglected the API because it competes with hashing on the CPU. GPU miners don't have that problem and can support more sophisticated API.