I Comparison Between API and WhatsMinerTool
1. When implementing identical functions, do WhatsMinerTool and the API differ in execution efficiency and operational performance?
There is no difference, for example, the function of adjusting the power limit achieves the same effect and efficiency.
2. Does the API provide exclusive functions that WhatsMinerTool does not support?
API can set up some settings for the fan of the air cooling miner to 0, which cannot be achieved in WhatsMinerTool.
3. What programming language is the API built with? Are there any recommended languages for secondary integration?
Request and Response are both in standard JSON structure, indicating that this is an API design based on RESTful style. JSON is a language independent universal data format that supports all mainstream programming languages (such as Python, Java, JavaScript, Go, etc.). We currently provide a demo of Python. Users can choose their preferred language to write in, but there are currently no recommendations.
II Batch Control, Hash Board & Power Tuning via API
1. How can I obtain data or configure multiple miners through API?
You need to scan all miners through WhatsMinerTool first, then enable the API function to proceed with the subsequent operations.
2. Can a single hashboard be powered off independently on WhatsMiner? Is this operation available via API commands?
For powering off one individual hashboard, it is not supported as we cannot control the power of one individual hashboard separately.
3. If we set a new power percentage, the miner needs approximate 5 minutes to reach the desired power. Can this time be shortened?
We support to fast boot in 10 seconds, the power will reach to the value you set. Refer to 3.14 Enable Btminer Fast Boot in API document.
4. If we set a different power mode, the miner restarts and needs approximate 30 minutes to achieve stable operation again. Can this time be shortened?
We support to adjust upfreq speed to shorten the time to reach the highest hashrate. Refer to 3.25 Adjust Upfreq Speed in API document.
5. For the miner, can a hashboard be switched off via the API?
We support to turn off hash board. Refer to 3.3 Power Off Hashboard in API document.
III API Status Query, Compatibility, Customization & Troubleshooting
1. What command in API can I use to know if the miner has stopped mining?
You could get relevant information using the following commands.
{“cmd”:“get.device.info”}
{“cmd”:“get.device.info”,“param”:“miner”}
If "working" indicates "false", then it means the miner has stopped mining. The following figure can be used as a reference.

2. Is Whats Miner compatible with Pyasic?
Pyasic already supports WhatsMiner, but requires API access. The documentation on how to use the API can be downloaded from our official website.
3. Does it support customization when I want to achieve functions through the API that the existing API cannot achieve?
It is necessary for the R&D team to evaluate and determine whether customization is possible based on the specific content and implementation difficulty that you want to achieve.
4. If the firmware upgrade fails or the miner IP cannot be accessed in the backend on the browser after entering it, what could be the reason and how should I proceed?
It may be necessary to perform card flashing on the control board. You can find the appropriate control board flashing system for your miner on the official website for operation.