Professional Documents
Culture Documents
Help
Help
API Description.
Api establish the tcp connection and send through it json data, like a stratum
protocol.
Every json request and response must be ended with new line symbol \n, this symbol
used
as a sign of data end.
Method getstat:
Request parameters:
id optional, type: unsigned int, response will be have this id.
method required, type: string, method name
Response parameters:
id type: unsigned, id from request or 0 in
other case.
method type: string, method name
error type: null, string, null if no error otherwise
message
start_time type: unsigned, time when miner was
started (availaible since version 0.3.4b)
current_server type: string, current server name
(availaible since 0.3.4b)
available_servers type: unsigned, number of available
stratum servers (availaible since 0.3.4b)
server_status type: unsigned, status of current server.
(availaible since 0.3.4b)
-1 server error
0 server waiting for
connection
1 server subscribed
2 server authorized and
works fine
3 server start
disconnecting
result type: array of objects, array contain objects by
one for each gpu