-
-
Save zhiming137/fd0d66405fb3b6faeba6c3ac9a185a99 to your computer and use it in GitHub Desktop.
Claymore JSON-RPC API documentation (from Claymore v9.6)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| EthMan uses raw TCP/IP connections (not HTTP) for remote management and statistics. Optionally, "psw" field is added to requests is the password for remote management is set for miner. | |
| The following commands are available (JSON format): | |
| ---------------- | |
| REQUEST: | |
| {"id":0,"jsonrpc":"2.0","method":"miner_getstat1"} | |
| RESPONSE: | |
| {"result": ["9.3 - ETH", "21", "182724;51;0", "30502;30457;30297;30481;30479;30505", "0;0;0", "off;off;off;off;off;off", "53;71;57;67;61;72;55;70;59;71;61;70", "eth-eu1.nanopool.org:9999", "0;0;0;0"]} | |
| "9.3 - ETH" - miner version. - miner 版本 | |
| "21" - running time, in minutes. - 运行时间,分钟 | |
| "182724;51;0" - total ETH hashrate in MH/s, number of ETH shares, number of ETH rejected shares. - 每秒算力,股份数,拒绝股份数 | |
| "30502;30457;30297;30481;30479;30505" - detailed ETH hashrate for all GPUs.- 算力详情 | |
| "0;0;0" - total DCR hashrate in MH/s, number of DCR shares, number of DCR rejected shares. - DCR每秒算力,股份数,拒绝股份数 | |
| "off;off;off;off;off;off" - detailed DCR hashrate for all GPUs. - 算力详情 | |
| "53;71;57;67;61;72;55;70;59;71;61;70" - Temperature and Fan speed(%) pairs for all GPUs. - GPU温度,风扇转速 | |
| "eth-eu1.nanopool.org:9999" - current mining pool. For dual mode, there will be two pools here. | |
| "0;0;0;0" - number of ETH invalid shares, number of ETH pool switches, number of DCR invalid shares, number of DCR pool switches. | |
| COMMENTS: | |
| Gets current statistics. | |
| ---------------- | |
| REQUEST: | |
| {"id":0,"jsonrpc":"2.0","method":"miner_restart"} | |
| RESPONSE: | |
| none. | |
| COMMENTS: | |
| Restarts miner. | |
| ---------------- | |
| REQUEST: | |
| {"id":0,"jsonrpc":"2.0","method":"miner_reboot"} | |
| RESPONSE: | |
| none. | |
| COMMENTS: | |
| Calls "reboot.bat" for Windows, or "reboot.bash" (or "reboot.sh") for Linux. | |
| ---------------- | |
| REQUEST: | |
| {"id":0,"jsonrpc":"2.0","method":"control_gpu", "params":[0, 1]} | |
| RESPONSE: | |
| none. | |
| COMMENTS: | |
| first number - GPU index, or "-1" for all GPUs. Second number - new GPU state, 0 - disabled, 1 - ETH-only mode, 2 - dual mode. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment