API Documentation
Foundry Firmware API Documentation
API DOCUMENTATION
Current Document Version / Date of Publish |
V1.5/14 Apr 2025 |
For FCB HW Version |
AML, CVT, FCB |
For FCB FW Version |
uptill FDMiner - 2503 |
Contents:
3.32 GET fetchReleaseNotes.cgi
3.39 GET get_legacy_status.cgi
3.58 GET getPermissionStatus.cgi
3.58 GET getBlockFoundInfo.cgi
3.46 POST set_network_conf.cgi
Version Updates:
Version |
Date of Publish |
Revision Log |
Revised By: |
V1.0 |
25th June 2024 |
Initial Release. |
Kavan |
V1.1 |
04 Jul 2024 |
Content Update for FW V2.4.3 |
Kavan |
V1.2 |
07 Aug 2024 |
Content Update for FW V2.4.4 |
Kavan |
V1.3 |
09 Sep 2024 |
Content Update for FW V2.4.5 |
Kavan |
V1.4 |
18 Nov 2024 |
Content Update for FW V2.4.6 |
Kavan |
V1.5 |
14 Apr 2025 |
Content Update for v2503 |
Kavan |
1. OVERVIEW
Foundry firmware supports two family of APIs: APIs of two types based on the end point to which it is being called to (or from):
a. CgMiner
b. CGI style
CGMiner based APIs are supported to preserve compatibility with other leading Mining Equipment.
- CgMiner based API Commands:
Foundry Firmware hosts a TCP server. These commands listen on a simple TCP/IP socket over the port 4028 for a single string. The FW serves this API by replying with a string and then closes the connection.
Request:
These API requests are in simple JSON format as shown below:
{"command":"CMD","parameter":"PARAM"}
The “command” field is mandatory, the “parameter” field is optional.
Response:
The responses received are in simple text format.
Each response of this kind starts with the “Status” section and is followed by the section containing the API response and an “id” section at the end of the response.
The server returns error status if the Request JSON format/parameter is invalid. - CGI style commands:
These commands exchange data using http authentication protocol,they fetch/send the data from/to the cgi-bin directory on the server.
A server using HTTP authentication will respond with a 401 Unauthorized response to a request for a protected resource. This response must include at least one WWW-Authenticate header and at least one challenge, to indicate what authentication schemes can be used to access the resource (Realm Name, Charset, Encryption, etc..
Request:
Two Types of requests are used.
GET requests-to fetch data from the server’s given endpoint.Input parameters are optional for most of these commands.
POST requests- to publish data on the server’s given endpoint.Parameters Input is Mandatory for these commands.
All the files from which data has to be read or written to are in <filename>.cgi format.
Response:
Response to all requests is in either JSON or text format.
Server returns code 200 upon successful processing of the request
The server returns the following error codes upon failure to process the request:
code 404: if the requested .cgi file is not found
code 400: if the requested user do not have access privilege
code 500: internal server error.
2. LIST OF APIs
3.1 {"command":"stats"}
Description: Fetch Miner data like Hash Board Temperature, Chip Temperature, Fan Speed, Hash Rate and other essential miner data from server. Most key value pairs are self-explanatory. Refer Section 3 for documentation details.
End Point (URL):tcp://<Miner_ip>:4028
Parameters: None
Response:
{ "STATUS": [ { "STATUS": "S", "When": 1722944585, "Code": 70, "Msg": "FoundryMiner Stats", "Description": "FoundryMiner 2.4.M.Fpsu_Test" } ], "STATS": [ { "BMMiner": "2.4.M.Fpsu_Test", "Miner": "FCB V3 Rev A Proto", "CompileTime": "Tue Jul 30 01:05:32 CST 2024", "Type": "Antminer S19JPROWP" }, { "STATS": 0, "ID": "BTM_SOC0", "Elapsed": 4143, "Calls": 0, "Wait": 0, "Max": 0, "Min": 99999999, "GHS 5s": 90000, "GHS av": 89000, "rate_30m": 88000, "Mode": 2, "miner_count": 3, "frequency": 477, "fan_num": 4, "fan1": 5786, "fan2": 5732, "fan3": 5872, "fan4": 5609, "temp_num": 3, "temp1": 66, "temp2_1": 58, "temp2": 65, "temp2_2": 58, "temp3": 66, "temp2_3": 58, "temp_pcb1": "53-53-61-61", "temp_chip1": "58-58-66-66", "temp_pic1": "43-43-51-51", "temp_pcb2": "53-53-60-60", "temp_chip2": "58-58-65-65", "temp_pic2": "43-43-50-50", "temp_pcb3": "53-53-61-61", "temp_chip3": "58-58-66-66", "temp_pic3": "43-43-51-51", "temp_pcb4": "0-0-0-0", "temp_chip4": "0-0-0-0", "temp_pic4": "0-0-0-0", "total_rateideal": 90000, "rate_unit": "GH", "total_freqavg": 477, "total_acn": 239, "total rate": 90.1239776611328, "temp_max": 66, "no_matching_work": 0, "chain_acn1": 79, "chain_acn2": 79, "chain_acn3": 79, "chain_acs1": "ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo", "chain_acs2": "ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo", "chain_acs3": "ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo ooo", "chain_acs4": "", "chain_hw1": 1, "chain_hw2": 1, "chain_hw3": 0, "chain_rate1": "29", "chain_rate2": "30", "chain_rate3": "30", "chain_rate4": "", "freq1": 477, "freq2": 477, "freq3": 477, "freq4": 0, "miner_version": "FCB V3 Rev A Proto", "miner_id": "811cc44a6f41a854" } ], "id": 1 } |
3.2 {"command":"pools"}
Description: Fetch Pool Addresses and other essential data of all the pool
End Point (URL):tcp://<Miner_ip>:4028
Parameters Required: None
Response:
{ "STATUS": [{ "STATUS": "S", "When": 1719162901, "Code": 7, "Msg": "3 Pool(s)", "Description": "FoundryMiner 2.4.2 Test2" }], "POOLS": [{ "POOL": 0, "URL": "stratum+tcp://btc.foundryusapool.com:3333", "Status": "Active", "Priority": 0, "Quota": 0, "Getworks": 829, "Accepted": 1760, "Rejected": 3, "Discarded": 0, "Stale": 1, "Get Failures": 0, "Remote Failures": 0, "User": "ccc.S19XP_B1", "Last Share Time": "1719162878", "Diff": "262K", "Diff1 Shares": 0, "Proxy Type": "", "Proxy": "", "Difficulty Accepted": 1872710, "Difficulty Rejected": 0, "Difficulty Stale": 319712, "Last Share Difficulty": 1872710, "Has Stratum": true, "Stratum Active": true, "Stratum URL": "btc.foundryusapool.com", "Has GBT": false, "Best Share": 173833500 }, ], /*Pool2 and Pool 3 Details will also be fetched in the above format*/ /** Response Modified for documentation purpose, Repetitive Data patterns skipped for brief documentation**/
"id": 1 }
|
Note*: Above JSON contains only details of One pool out of three. Other two pool details are fetched in the same format one after the other.
3.3 {"command":"version"}
Description: Fetch API, FoundryMiner and hardware versions.
Use Case:End Point(URL):tcp://<Miner_ip>:4028
Parameters Required: None
Response:
{ "STATUS": [{ "STATUS": "S", "When": 1719163104, "Code": 22, "Msg": "FoundryMiner Stats", "Description": "FoundryMiner 2.4.2 Test2" }], "VERSION": [{ "FoundryMiner": "2.4.2 Test2", "API": "3.1", "Miner": "FCB V2.2", "CompileTime": "Wed Jun 12 02:16:32 CST 2024", "Type": "Antminer S19 XP" }], "id": 1 } |
3.4 {"command":"summary"}
Description: Fetch Summary of the Mining Parameters.
End Point (URL):tcp://<Miner_ip>:4028
Parameters Required: None
Response:
{ "STATUS": [{ "STATUS": "S", "When": 1719163185, "Code": 11, "Msg": "Summary", "Description": "FoundryMiner 2.4.2 Test2" }], "SUMMARY": [{ "Elapsed": 24930, "GHS 5s": 96000, "GHS av": 93000, "GHS 30m": 93000, "Found Blocks": 0, "Getwork": 30, "Accepted": 1787, "Rejected": 3, "Hardware Errors": 6, "Discarded": 56783, "Stale": 3, "Get Failures": 0, "Local Work": 56813, "Remote Failures": 0, "Network Blocks": 1, "Total MH": 96.479156494140625, "Work Utility": 0, "Difficulty Accepted": 262144, "Difficulty Rejected": 262144, "Difficulty Stale": 262144, "Best Share": 262144, "Device Hardware%%": 0, "Device Rejected%%": 0, "Pool Rejected%%": 0, "Pool Stale%%": 0, "Last getwork": 1695624866 }], "id": 1} |
3.5 {"command":"devs"}
Description: Fetches each available PGA / ASICs data and their details.
End Point (URL): tcp://<Miner_ip>:4028
Parameters Required: None
Response:
{ "STATUS": [{ "STATUS": "S", "When": 1719163256, "Code": 9, "Msg": "1 ASC(s)", "Description": "FoundryMiner 2.4.2 Test2" }], "DEVS": { "": { "ASC": 0, "Name": "BTM_SOC", "ID": 0, "Enabled": "Y", "Status": "Alive", "Temperature": 0, "MHS av": 92000000, "MHS 5s": 92000000, "Accepted": 1791, "Rejected": 1791, "Hardware Errors": 6, "Utility": 0, "Last Share Pool": 0, "Last Share Time": 1695624979, "Total MH": 92000, "Diff1 Work": 262144, "Difficulty Accepted": 262144, "Difficulty Rejected": 262144, "Last Valid Work": 1695624979, "Device Hardware%%": 0, "Device Rejected %%": 0, "Device Elapsed": 25002 } }, "id": 1 } |
*Updated for Foundry 2.4.3
3.6 {"command":"prodata"}
Description: Fetches frequency, Health, Hardware errors and Hash Rates of individual ASIC in the miner along with other details.
End Point (URL): tcp://<Miner_ip>:4028
Parameters Required: None
Response:
{ "STATUS": [{ "STATUS": "S", "When": 1719163315, "Code": 99, "Msg": "FoundryMiner ProData", "Description": "FoundryMiner 2.4.2 Test2" }], "PROData": { "Miner Status": "Mining", "Miner Name": "FoundryCBMiner", "Voltage": 11.899999618530273, "Power": "2.61", "Efficiency": 19.38249397277832, "FanMode": 0, "FanSpeed": 100, "manualFanSpeed": 100, "HB1State": 1, "HB2State": 1, "HB3State": 1, "asicFreqChain1": [[320, 320, 320, 320, 320, 320, 320, 320, 320, 320], [320, 320, 320, 320, 320, 320, 320, 320, 320, 320], [320, 320, 320, 320, 320, 320, 320, 320, 320, 320], [320, 320, 320, 320, 320, 320, 320, 320, 320, 320], [320, 320, 320, 320, 320, 320, 320, 320, 320, 320], [320, 320, 320, 320, 320, 320, 320, 320, 320, 320], [320, 320, 320, 320, 320, 320, 320, 320, 320, 320], [320, 320, 320, 320, 320, 320, 320, 320, 320, 320], [320, 320, 320, 320, 320, 320, 320, 320, 320, 320], [320, 320, 320, 320, 320, 320, 320, 320, 320, 320], [320, 320, 320, 320, 320, 320, 320, 320, 320, 320]], "asicHRChain1": [[0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863], [0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863], [0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863], [0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863], [0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863], [0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863], [0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863], [0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863], [0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863], [0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863], [0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863, 0.27300000190734863]], "asicHWEChain1": [["-", "-", "-", "-", "-", "-", "-", "-", "-", "-"], ["-", "-", "-", "-", "-", "-", "-", "-", "-", "-"], ["-", "-", "-", "-", "-", "-", "-", "-", "-", "-"], ["-", "-", "-", "-", "-", "-", "-", "-", "-", "-"], ["-", "-", "-", "-", "-", "-", "-", "-", "-", "-"], ["-", "-", "-", "-", "-", "-", "-", "-", "-", "-"], ["-", "-", "-", "-", "-", "-", "-", "-", "-", "-"], ["-", "-", "-", "-", "-", "-", "-", "-", "-", "-"], ["-", "-", "-", "-", "-", "-", "-", "-", "-", "-"], ["-", "-", "-", "-", "-", "-", "-", "-", "-", "-"], ["-", "-", "-", "-", "-", "-", "-", "-", "-", "-"]], "asicHealthChain1": [["-", "-", "-", "-", "-", "-", "-", "-", "-", "-"], ["-", "-", "-", "-", "-", "-", "-", "-", "-", "-"], ["-", "-", "-", "-", "-", "-", "-", "-", "-", "-"], ["-", "-", "-", "-", "-", "-", "-", "-", "-", "-"], ["-", "-", "-", "-", "-", "-", "-", "-", "-", "-"], ["-", "-", "-", "-", "-", "-", "-", "-", "-", "-"], ["-", "-", "-", "-", "-", "-", "-", "-", "-", "-"], ["-", "-", "-", "-", "-", "-", "-", "-", "-", "-"], ["-", "-", "-", "-", "-", "-", "-", "-", "-", "-"], ["-", "-", "-", "-", "-", "-", "-", "-", "-", "-"], ["-", "-", "-", "-", "-", "-", "-", "-", "-", "-"]], /*"asicFreqChain2" and "asicFreqChain3" is updated in the same format as above*/ /*"asicHealthChain2" and "asicHealthChain3" are updated in the same format as above*/ /*"asicHRChain2" and "asicHRChain3" is updated in the same format as above*/ /*"asicHWEChain2" and "asicHWEChain3" is updated in the same format as above*/ /** Response Snipped to keep the document brief**/ "throttle Mode": "false", "throttleHR": -1, "throttleFreq": -1, "Miner Mode": 3, "Mining Mode": 0, "TargetHR": 93, "AutoTuneStage": 3, "ShutDownTemp": 80, "targetChipTemp": 60, "maxHrRestartAttempt": "5", "hrThreshold": "20", "maxErrRestart": "5", "minFans": "4", "pool1Port": 3333, "pool1PW": "X", "pool2Port": 443, "pool2PW": "X", "pool3Port": 25, "pool3PW": "X", "Xcord": "x", "Ycord": "y", "Zcord": "z" }, "id": 1 } |
|
3.7 {"command":"restart"}
Description: This Request restarts the miner.
End Point (URL): tcp://<Miner_ip>:4028
Parameters Required: None
Response: No Response
Foundry 2.4.4 no response being sent.
3.8 {"command":"quit"}
Description: Shuts Down the miner.
End Point (URL): tcp://<Miner_ip>:4028
Parameters Required: None
Response: No Response sent. Operation executed successfully.
Note*: This is a destructive API call.Once the above command is called, the Miner completely shuts down. Only a power cycle will turn on the miner. The user should have physical access to the Machine to turn it back ON.If the machine is connected to a smart PDU, the user can turn it back again over the network using PDU dashboard.
3.9 {"command":"locate"}
Description: Locates the Miner by Blinking the tower LED continuously and beeping the Buzzer (if connected) for 10 min.
Users can turn off the indication using the toggle switch on the dashboard.
Use Case: Locate the miners in farms or mass mining space.
End Point (URL): tcp://<Miner_ip>:4028
Parameters Required: None
Response: No Response sent. Operation executed successfully.
3.10 {"command":"softExit"}
Description: Gracefully softReboot the miner,by powering off HBs & PSU.
Firmware auto restarts after approx. 30 -50 seconds.
End Point (URL): tcp://<Miner_ip>:4028
Parameters Required: None
Response: No Response sent. Operation will be executed successfully.
3.11 GET get_miner_conf.cgi
Description: Fetches Configuration details of the Miner.
End Point (URL): /cgi-bin/get_miner_conf.cgi
Parameters Required: None
Response:
{ |
3.12 GET get_network_info.cgi
Description: Fetches the network Information
End Point: /cgi-bin/get_network_info.cgi
Parameters Required: None
Response:
{ "nettype": "DHCP", "netdevice": "end0", "macaddr": "02:03:00:00:00:05", "hostname": "foundry-020300000002", "ipaddres": "10.2.30.41", "netmask": "255.255.255.0", "conf_nettype": "DHCP", "conf_hostname": "foundry-020300000002", "conf_ipaddress": "10.2.30.41", "conf_netmask": "255.255.255.0", "conf_gateway": "10.2.30.1", "conf_dnsservers": "1.1.1.1" } |
3.13 GET get_system_info.cgi
Description: Fetches System information parameters.
End Point:/cgi-bin/get_system_info.cgi
Parameters Required: None.
Response:
{ "minertype": "Antminer S19 XP", "nettype": "DHCP", "netdevice": "end0", "macaddr": "02:03:00:00:00:05", "hostname": "foundry-020300000002", "ipaddres": "10.2.30.41", "netmask": "255.255.255.0", "gateway": "10.2.30.1", "dnsservers": "1.1.1.1", "system_mode": "GNU/Linux", "system_kernel_version": "Linux 6.1.28 #1 SMP PREEMPT Wed May 29 12:17:48 IST 2024", "system_filesystem_version": "Tue Jun 25 17:10:32 CST 2024", "firmware_type": "test" "serinum": "0ca56518acba4a66bb799c17db536063" } |
3.14 GET getBoardTemp.cgi
Description: Fetches Board Temperature in degree centigrades(°C).
End Point: /cgi-bin/getBoardTemp.cgi
Parameters Required: None
Response:
{ "boardTemperature": 48 } |
Note*: In FCB V3 this API call may fail to send data sometimes, it's recommended to recall the API multiple times until data is received successfully.
3.15 GET getCpuStat.cgi
Description: Fetches the CPU Stats of the Miner controller.
This is like the “top” command in linux, which is used to monitor system stats and activity.
End Point: /cgi-bin/getCpuStat.cgi
Parameters Required: None
Response:
{ "user": "0%", "sys": "4%", "nice": "0%", "idle": "95%", "iowait": "0%", "irq": "0%", "loadavg1Min": "0.37", "loadavg5Min": "0.99", "loadavg15Min": "0.72", "running processes": "1", "total processes": "113" } |
3.16 GET getError.cgi
Description: Fetches the Miner errors if available.
End Point: /cgi-bin/getError.cgi
Parameters Required: None.
Response:
{ "errors": [] } |
3.17 GET getFreeSpace.cgi
Description: Fetches the available free space and other memory details on the Miner controller.
End Point:/cgi-bin/getFreeSpace.cgi
Parameters Required:
Response:
{ "totalSize": "3698930", "usedSpace": "1141956", "availableSpace": "2423892", "unit": "kb", "%used": "30.87", "%avail": "65.53" } |
3.18 GET getGraphData.cgi
Description: Fetches the data required for graphical representation of Hash Rate, Temperature (Inlet and Outlet), and current time.
End Point: /cgi-bin/getGraphData.cgi
Parameters Required: None
Response:
{ "inletTemp1": "54", "inletTemp2": "54", "inletTemp3": "54", "outletTemp1": "62", "outletTemp2": "61", "outletTemp3": "61", "HB1HR": "29.9", "HB2HR": "28.0", "HB3HR": "28.7" |
|
3.19 GET getLogDir.cgi
Description: Fetches the names of logs files available in Log Directory of the system.
End Point: /cgi-bin/getLogDir.cgi
Parameters Required: None
Response:
{ "logs": { "today": [], "previous": [ { "fileName": "restart.log", "fileSize": "220 B", "fileMod": "" }, { "fileName": "onlineUpdate.log", "fileSize": "2 KB", "fileMod": "" }, { "fileName": "logs-202504132359.tar.gz", "fileSize": "5 MB", "fileMod": "" }, { "fileName": "logs-202504122359.tar.gz", "fileSize": "5 MB", "fileMod": "" }, { "fileName": "logs-202504112359.tar.gz", "fileSize": "6 MB", "fileMod": "" }, { "fileName": "logs-202504092359.tar.gz", "fileSize": "3 MB", "fileMod": "" }, { "fileName": "logs-202504082359.tar.gz", "fileSize": "3 MB", "fileMod": "" }, { "fileName": "hrRestartAtmpt.log", "fileSize": "24 B", "fileMod": "" }, { "fileName": "foundryminerExec.log", "fileSize": "13 MB", "fileMod": "" }, { "fileName": "foundryminerErr.log", "fileSize": "5 KB", "fileMod": "" }, { "fileName": "checkDirectory.log", "fileSize": "52 KB", "fileMod": "" } ] }, "csv": { "today": [], "previous": [ { "fileName": "Log0414.csv", "fileSize": "165 KB", "fileMod": "" }, { "fileName": "Log0413.csv", "fileSize": "346 KB", "fileMod": "" }, { "fileName": "Log0412.csv", "fileSize": "340 KB", "fileMod": "" }, { "fileName": "Log0411.csv", "fileSize": "257 KB", "fileMod": "" }, { "fileName": "Log0410.csv", "fileSize": "210 KB", "fileMod": "" }, { "fileName": "Log0409.csv", "fileSize": "353 KB", "fileMod": "" }, { "fileName": "Log0408.csv", "fileSize": "353 KB", "fileMod": "" }, { "fileName": "Log0407.csv", "fileSize": "353 KB", "fileMod": "" } ] } }
|
Note*: "foundryminerErr.log" and “foundryminerExec.log" contain log for present day while older logs have the file names with timestamp of a particular day(Eg: "foundryminerExec.log-20240621.gz" )
3.20 GET getReleaseNote.cgi
Description: Fetches the Release Notes from the system server only if new releases are available.
End Point: /cgi-bin/getReleaseNote.cgi
Parameters Required: None
Response:
*Response sent only if any new releases are available to be updated.
Expected Response if new releases available:
" 2.4.2 * this update is a patch for bug fix #252525 ....................."
Expected Response if no new releases available:
{"stats":"error","code":"U001","msg":"release note missing!"}"
3.21 GET liveLogs.cgi
Description: Fetches last 100 lines of real time logs.
End Point: /cgi-bin/liveLogs.cgi
Parameters Required: None
Response:
Data is from line 26306 to line 26405: 12/07/24 06:51:28.300 L4 STAT IT : 45 0 0 12/07/24 06:51:28.300 L4 STAT OT : 71 0 0 12/07/24 06:51:28.300 L4 STAT HT : 71.00 12/07/24 06:51:28.300 L4 STAT F :490 V:13.80 12/07/24 06:51:28.300 L4 STAT PC : 1.30 EF 19.55 12/07/24 06:51:28.300 L4 STAT FSS: 46 3465 3537 3437 3479 12/07/24 06:51:28.300 L4 STAT 1.3kW 19.5J/TH 12/07/24 06:51:28.300 L4 STAT HB1 AR: 6590 PS: 34812 HR: 66.4TH/s 12/07/24 06:51:28.300 L4 STAT CHR: 66.36 30MinHR: 66 1HHR: 66 12/07/24 06:51:28.301 L4 STAT UT: 598965 s 12/07/24 06:51:29.865 L5 HB HB1 HWE 12/07/24 06:51:31.117 L1 MAIN PID fanSetSpeed P: -1.00 I: 325.00 D: 0.00 C: 24 FS: 66 FSS: 46 12/07/24 06:51:32.041 L5 POOL CPH : 1516500 1516494 1516474. 12/07/24 06:51:34.123 L1 MAIN PID fanSetSpeed P: -1.00 I: 324.00 D: 0.00 C: 23 FS: 67 FSS: 47 12/07/24 06:51:35.281 L0 FAN Changing Fan Speed 46 -> 47 12/07/24 06:51:37.125 L1 MAIN PID fanSetSpeed P: -1.00 I: 323.00 D: 0.00 C: 23 FS: 67 FSS: 47 12/07/24 06:51:37.148 L5 NETW Network - OK 12/07/24 06:51:38.123 L0 MAIN ATS 1 12/07/24 06:51:38.123 L0 MAIN ## ## voltage Selected is at Stable ## ##: 13.80 12/07/24 06:51:38.123 L0 MAIN voltage before limit & set value: 13.80 12/07/24 06:51:38.124 L0 MAIN EnabledHB THR: 66.67 HRAfterLastVoltUpdate: 66.37 New Calc V : 13.80 12/07/24 06:51:40.121 L1 MAIN PID fanSetSpeed P: -1.00 I: 322.00 D: 0.00 C: 23 FS: 67 FSS: 47 12/07/24 06:51:40.269 L5 HB HB1: 0 BD 7396797.5 / 262144 12/07/24 06:51:41.051 L5 POOL Share 34822 Accepted 12/07/24 06:51:43.130 L1 MAIN PID fanSetSpeed P: -1.00 I: 321.00 D: 0.00 C: 23 FS: 67 FSS: 47 12/07/24 06:51:46.121 L1 MAIN PID fanSetSpeed P: -1.00 I: 320.00 D: 0.00 C: 23 FS: 67 FSS: 47 12/07/24 06:51:49.120 L1 MAIN PID fanSetSpeed P: -1.00 I: 319.00 D: 0.00 C: 23 FS: 67 FSS: 47 12/07/24 06:51:52.043 L5 POOL CPH : 1516520 1516518 1516509. 12/07/24 06:51:52.118 L1 MAIN PID fanSetSpeed P: -1.00 I: 318.00 D: 0.00 C: 23 FS: 67 FSS: 47 12/07/24 06:51:55.123 L1 MAIN PID fanSetSpeed P: -1.00 I: 317.00 D: 0.00 C: 23 FS: 67 FSS: 47 12/07/24 06:51:58.120 L1 MAIN PID fanSetSpeed P: -1.00 I: 316.00 D: 0.00 C: 23 FS: 67 FSS: 47 12/07/24 06:52:00.345 L4 STAT CPI: 0 12/07/24 06:52:00.346 L4 STAT PH : 1 1 0 12/07/24 06:52:00.346 L4 STAT TPA: 34693 \ 117 12/07/24 06:52:00.346 L4 STAT PA : 34666 \ 117 12/07/24 06:52:00.346 L4 STAT IT : 44 0 0 12/07/24 06:52:00.346 L4 STAT OT : 70 0 0 12/07/24 06:52:00.346 L4 STAT HT : 70.00 12/07/24 06:52:00.346 L4 STAT F :490 V:13.80 12/07/24 06:52:00.346 L4 STAT PC : 1.29 EF 19.64 12/07/24 06:52:00.346 L4 STAT FSS: 47 3500 3484 3516 3533 12/07/24 06:52:00.346 L4 STAT 1.3kW 19.6J/TH 12/07/24 06:52:00.346 L4 STAT HB1 AR: 6591 PS: 34813 HR: 65.8TH/s 12/07/24 06:52:00.346 L4 STAT CHR: 65.77 30MinHR: 66 1HHR: 66
. . . . . . . (Previous 100 lines will be fetched) |
3.22 GET locate.cgi
Description: Locates the miner by blinking LEDs and Sounding Buzzer.
End Point: /cgi-bin/locate.cgi
Parameters Required: None
Response:
No Response. Operation will be executed successfully on call.
Note: This CGi is decommissioned from FoS Phase and implemented as blink.cgi
3.23 GET log.cgi
Description: Fetches the Miner Log.
End Point: /cgi-bin/log.cgi
Parameters Required: None.
Response:
2/07/24 06:55:35.120 L1 MAIN PID fanSetSpeed P: 0.00 I: 324.00 D: 0.00 C: 25 FS: 65 FSS: 45 12/07/24 06:55:38.121 L1 MAIN PID fanSetSpeed P: 0.00 I: 324.00 D: 0.00 C: 25 FS: 65 FSS: 45 12/07/24 06:55:41.122 L1 MAIN PID fanSetSpeed P: 0.00 I: 324.00 D: 0.00 C: 25 FS: 65 FSS: 45 12/07/24 06:55:44.115 L1 MAIN PID fanSetSpeed P: 0.00 I: 324.00 D: 0.00 C: 25 FS: 65 FSS: 45 12/07/24 06:55:46.118 L0 MAIN ATS 1 12/07/24 06:55:46.118 L0 MAIN ## ## voltage Selected is at Stable ## ##: 13.80 12/07/24 06:55:46.119 L0 MAIN voltage before limit & set value: 13.80 12/07/24 06:55:46.119 L0 MAIN EnabledHB THR: 66.67 HRAfterLastVoltUpdate: 66.61 New Calc V : 13.80 12/07/24 06:55:47.117 L1 MAIN PID fanSetSpeed P: 0.00 I: 324.00 D: 0.00 C: 25 FS: 65 FSS: 45 12/07/24 06:55:50.118 L1 MAIN PID fanSetSpeed P: 0.00 I: 324.00 D: 0.00 C: 25 FS: 65 FSS: 45 12/07/24 06:55:53.123 L1 MAIN PID fanSetSpeed P: 0.00 I: 324.00 D: 0.00 C: 25 FS: 65 FSS: 45 12/07/24 06:55:56.117 L0 MAIN Waiting for all pool Status 12/07/24 06:55:57.118 L1 MAIN PID fanSetSpeed P: 0.00 I: 324.00 D: 0.00 C: 25 FS: 65 FSS: 45 12/07/24 06:56:00.118 L1 MAIN PID fanSetSpeed P: 0.00 I: 324.00 D: 0.00 C: 25 FS: 65 FSS: 45 12/07/24 06:56:03.121 L1 MAIN PID fanSetSpeed P: 0.00 I: 324.00 D: 0.00 C: 25 FS: 65 FSS: 45 12/07/24 06:56:06.117 L1 MAIN PID fanSetSpeed P: 1.00 I: 325.00 D: 1.00 C: 28 FS: 62 FSS: 41 12/07/24 06:56:06.555 L0 FAN Changing Fan Speed 45 -> 41 12/07/24 06:56:09.117 L1 MAIN PID fanSetSpeed P: 1.00 I: 326.00 D: 0.00 C: 28 FS: 62 FSS: 41 12/07/24 06:56:12.122 L1 MAIN PID fanSetSpeed P: 1.00 I: 327.00 D: 0.00 C: 28 FS: 62 FSS: 41 12/07/24 06:56:15.120 L1 MAIN PID fanSetSpeed P: 1.00 I: 328.00 D: 0.00 C: 28 FS: 62 FSS: 41 12/07/24 06:56:18.120 L1 MAIN PID fanSetSpeed P: 1.00 I: 329.00 D: 0.00 C: 28 FS: 62 FSS: 41 12/07/24 06:56:21.120 L1 MAIN PID fanSetSpeed P: 1.00 I: 330.00 D: 0.00 C: 28 FS: 62 FSS: 41 12/07/24 06:56:24.116 L1 MAIN PID fanSetSpeed P: 1.00 I: 331.00 D: 0.00 C: 28 FS: 62 FSS: 41 12/07/24 06:56:27.116 L1 MAIN PID fanSetSpeed P: 1.00 I: 332.00 D: 0.00 C: 28 FS: 62 FSS: 41 12/07/24 06:56:30.122 L1 MAIN PID fanSetSpeed P: 1.00 I: 333.00 D: 0.00 C: 28 FS: 62 FSS: 41 12/07/24 06:56:33.123 L1 MAIN PID fanSetSpeed P: 1.00 I: 334.00 D: 0.00 C: 28 FS: 62 FSS: 41 12/07/24 06:56:36.123 L1 MAIN PID fanSetSpeed P: 1.00 I: 335.00 D: 0.00 C: 28 FS: 62 FSS: 41 12/07/24 06:56:39.116 L1 MAIN PID fanSetSpeed P: 1.00 I: 336.00 D: 0.00 C: 28 FS: 62 FSS: 41 12/07/24 06:56:42.122 L1 MAIN PID fanSetSpeed P: 1.00 I: 337.00 D: 0.00 C: 28 FS: 62 FSS: 41 12/07/24 06:56:45.114 L1 MAIN PID fanSetSpeed P: 1.00 I: 338.00 D: 0.00 C: 29 FS: 61 FSS: 40 12/07/24 06:56:46.551 L0 FAN Changing Fan Speed 41 -> 40 12/07/24 06:56:48.120 L1 MAIN PID fanSetSpeed P: 1.00 I: 339.00 D: 0.00 C: 29 FS: 61 FSS: 40
|
Note*: Logs.cgi is currently implemented as log.cgi, and was supported in the previous versions (prior to 2.4.4). Logs.cgi will be decommissioned in future versions.
3.24 GET pools.cgi
Description: Fetches all the configured pool data in the order of priority.
End Point: /cgi-bin/pools.cgi
Parameters Required: None.
Response:
{ "STATUS": [ { "STATUS": "S", "When": 1719404628, "Code": 7, "Msg": "3 Pool(s)", "Description": "FoundryMiner 2.4.3 Test" } ], "POOLS": [ { "POOL": 0, "URL": "stratum+tcp://btc.foundryusapool.com:3333", "Status": "Active", "Priority": 0, "Quota": 0, "Getworks": 368, "Accepted": 705, "Rejected": 2, "Discarded": 0, "Stale": 1, "Get Failures": 0, "Remote Failures": 0, "User": "ccc.S19XP_B1", "Last Share Time": "1719404597", "Diff": "524K", "Diff1 Shares": 0, "Proxy Type": "", "Proxy": "", "Difficulty Accepted": 4191891, "Difficulty Rejected": 0, "Difficulty Stale": 627693, "Last Share Difficulty": 4191891, "Has Stratum": true, "Stratum Active": true, "Stratum URL": "btc.foundryusapool.com", "Has GBT": false, "Best Share": 787387275 }, /*Pool2 and Pool 3 Detailes will also be fetched in the above format*/ /** Response Modified for documentation purpose, Repetative Data patterns skipped for presice documentation**/ ], "id": 1 } |
3.25 GET prodata.cgi
Description: Fetches frequency, Health, Hardware errors and Hash Rates of individual ASIC in the miner along with other details.
End Point: /cgi-bin/prodata.cgi
Parameters Required: None.
Response:
{ "STATUS": [{ "STATUS": "S", "When": 1733556115, "Code": 99, "Msg": "FoundryMiner ProData", "Description": "FoundryMiner 2.4.7" }], "PROData": { "Miner Status": "Mining", "Miner Name": "FoundryCBMiner", "Voltage": "13.80", "Power": "1.28", "Efficiency": "19.34", "FanMode": 0, "FanSpeed": 45, "manualFanSpeed": 100, "HB1State": 1, "HB2State": 0, "HB3State": 0, "throttle Mode": "false", "throttleHR": -1, "throttleFreq": -1, "Miner Mode": 0, "Mining Mode": 0, "TargetHR": 200, "ShutDownTemp": 90, "targetChipTemp": 70, "maxHrRestartAttempt": "5", "hrThreshold": "20", "maxErrRestart": "10", "minFans": "4", "pool1Port": 3333, "pool1PW": "x", "pool2Port": 443, "pool2PW": "x", "pool3Port": 25, "pool3PW": "x", "Xcord": "x", "Ycord": "y", "Zcord": "z" }, "id": 1 }
|
|
Note*: All the parameters are fetched for each ASICs on all available hash boards in Miner whose count varies based on model.
3.25 GET getRamData.cgi
Description: Fetches RAM usage Data from the system.
End Point: /cgi-bin/getRamData.cgi
Parameters Required: None.
Response:
{ |
3.26 GET reboot.cgi
Description: Reboot the Miner.
End Point: /cgi-bin/reboot.cgi
Parameters Required: None.
Response: No JSON Response. Operation will be successfully executed.
3.27 GET resetMiner.cgi
Description: Reset the Miner.
End Point: /cgi-bin/resetMiner.cgi
Parameters Required: None.
Response:No JSON Response. Operation will be successfully executed.
*(Discontinued from Foundry V2.4.4)
3.28 GET restart.cgi
Description: Restart the Miner.
End Point: /cgi-bin/restart.cgi
Parameters Required: None.
Response:
{"STATUS": "BYE"} |
3.29 GET stats.cgi
Description: Fetch Miner data for each ASIC chain on the HashBoard*.
End Point: /cgi-bin/stats.cgi
Parameters Required: None.
Response:
{ "STATUS": [{ "STATUS": "S", "When": 1719161976, "Code": 70, "Msg": "FoundryMiner Stats", "Description": "FoundryMiner 2.4.2 Test2" }], "STATS": [{ "BMMiner": "2.4.2 Test2", "Miner": "FCB V2.2", "CompileTime": "Wed Jun 12 02:16:32 CST 2024", "Type": "Antminer S19 XP" }, { "STATS": 0, "ID": "BTM_SOC0", "Elapsed": 23722, "Calls": 0, "Wait": 0, "Max": 0, "Min": 99999999, "GHS 5s": 94000, "GHS av": 93000, "rate_30m": 93000, "Mode": 2, "miner_count": 3, "frequency": 320, "fan_num": 4, "fan1": 5853, "fan2": 5798, "fan3": 5797, "fan4": 5758, "temp_num": 3, "temp1": 61.5, "temp2_1": 53.5, "temp2": 62, "temp2_2": 54, "temp3": 65, "temp2_3": 55.5, "temp_pcb1": "48-48-56-56", "temp_chip1": "53-53-61-61", "temp_pic1": "38-38-46-46", "temp_pcb2": "49-49-57-57", "temp_chip2": "54-54-62-62", "temp_pic2": "39-39-47-47", "temp_pcb3": "50-50-60-60", "temp_chip3": "55-55-65-65", "temp_pic3": "40-40-50-50", "temp_pcb4": "0-0-0-0", "temp_chip4": "0-0-0-0", "temp_pic4": "0-0-0-0", "total_rateideal": 88000, "rate_unit": "GH", "total_freqavg": 320, "total_acn": 1679, "total rate": 94.228668212890625, "temp_max": 65, "no_matching_work": 0, "chain_acn1": 559, "chain_acn2": 559, "chain_acn3": 559, "chain_acs1": "oooooooooo oooooooooo oooooooooo oooooooooo oooooooooo oooooooooo oooooooooo oooooooooo oooooooooo oooooooooo oooooooooo", "chain_acs2": "oooooooooo oooooooooo oooooooooo oooooooooo oooooooooo oooooooooo oooooooooo oooooooooo oooooooooo oooooooooo oooooooooo", "chain_acs3": "oooooooooo oooooooooo oooooooooo oooooooooo oooooooooo oooooooooo oooooooooo oooooooooo oooooooooo oooooooooo oooooooooo", "chain_acs4": "", "chain_hw1": 2, "chain_hw2": 1, "chain_hw3": 3, "chain_rate1": "29", "chain_rate2": "32", "chain_rate3": "32", "chain_rate4": "", "freq1": 320, "freq2": 320, "freq3": 320, "freq4": 0, "miner_version": "FCB V2.2", "miner_id": "811cc44a6f41a854" }], "id": 1 } |
3.30 GET summary.cgi
Description: Fetches Miner summary and ming status and other essential data for Dashboard.
End Point: /cgi-bin/summary.cgi
Parameters Required: None.
Response:
{ "STATUS": [ { "STATUS": "S", "When": 1719406139, "Code": 11, "Msg": "Summary", "Description": "FoundryMiner 2.4.3 Test" } ], "SUMMARY": [ { "Elapsed": 12250, "GHS 5s": 137000, "GHS av": 135000, "GHS 30m": 136000, "Found Blocks": 0, "Getwork": 420, "Accepted": 793, "Rejected": 2, "Hardware Errors": 8, "Discarded": 56783, "Stale": 1, "Get Failures": 0, "Local Work": 56813, "Remote Failures": 0, "Network Blocks": 1, "Total MH": 137745488, "Work Utility": 0, "Difficulty Accepted": 2529323, "Difficulty Rejected": 0, "Difficulty Stale": 627693, "Best Share": 787387275, "Device Hardware%%": 0, "Device Rejected%%": 0, "Pool Rejected%%": 0, "Pool Stale%%": 0, "Last getwork": 1695624866 } ], "id": 1 }
|
3.31 GET systemLogs.cgi
Description: Fetches Kernel level logs. Supported only for Foundry Controller Boards.
End Point: /cgi-bin/systemLogs.cgi
Parameters Required: None.
Response:
[ 0.000000] Booting Linux on physical CPU 0x0 . . . . |
3.32 GET rebootLogs.cgi
Description: Fetches Reboot logs from miner
End Point: /cgi-bin/systemLogs.cgi
Parameters Required: None.
Response:
The file size is too large. Fetching only the last 20 lines. Download to view full data. |
3.33 GET fetchReleaseNotes.cgi
Description: Fetches the latest release notes.
End Point:/cgi-bin/fetchReleaseNotes.cgi
Parameters Required: None
Response:
{ "versionLogs": [ { "version": "2.4.2", "releaseDate": "May 28 2024", "firmwareVersion": "2.4.2", "dashboardVersion": "1.2.5", "MainChanges": [ { "added": ["",""], "modified": ["",""] } ], "BugFixes": ["",""] }, /* All the previous release notes are fetched as in the same format above, response snipped for concise documentation*/ } |
3.34 GET checkUpdate.cgi
Description: Fetches the status of new firmware upgrade if available.
End Point:/cgi-bin/checkUpdate.cgi
Parameters Required: None
Response:
{"stats":"abort","code":"U001","msg":"Update file is primitive version, update not required"} |
Note*: this feature is available as checkUpgrade.cgi call until V 2.4.3
*CheckUpdate.cgi and onlineUpdate.cgi are decommissioned and are implemented in single cgi - “resetAndCheck.cgi” from FDOS v2502
3.35 GET getAutoConf.cgi
Description: Fetches pre-defined/user entered flag (0/1) to control online updates and auto-rename functionality.
End Point:/cgi-bin/getAutoConf.cgi
Parameters Required: None
Response:
{ |
3.36 GET getNetStat.cgi
Description: Fetch device MAC, IP address, fetch total Transferred (tx) and received(rx) bytes of data in device after last reboot, ping speed in milliseconds.
End Point:/cgi-bin/getNetStat.cgi
Parameters Required: None
Response:
{ |
3.37 GET onlineUpdate.cgi
Description: Upgrades Foundry to the latest version if available.This is followed by checkUpdate.cgi, if update is available.
End Point:/cgi-bin/onlineUpdate.cgi
Parameters Required: None
Response:
{ "stats": "error", "code": "U001", "msg": "encrypted file not found in recived bundle" } |
Note*: this feature is available as onlineUpgrade.cgi call until firmware V 2.4.3
*CheckUpdate.cgi and onlineUpdate.cgi are decommissioned and are implemented in single cgi - “resetAndCheck.cgi” from v2502
3.38 GET getATStat.cgi
Description: Provides the Chip Level tuning status when the miner is in Autotune Mode (0 signifies Disabled & 1 for Enabled)
End Point:/cgi-bin/getATStat.cgi
Parameters Required: None
Response:
{"chipTuningMode":"0"}
3.39 GET get_blink_status.cgi
Description: gets LED blinking status. Responds boolean false (if not blinking) or true (if blinking).
End Point:/cgi-bin/get_blink_status.cgi
Parameters Required: None
Response:
{"blink":false}
3.40 GET getVersion.cgi
Description: Fetches the version of the new online firmware update file (if available).
End Point:/cgi-bin/getVersion.cgi
Parameters Required: None
Response:
{"stats":"success","code":"V000","msg":"2.4.4"}
3.41 GET get_legacy_status.cgi
Description: Legacy status is set to make the miners compatible with foreman tool, when true these miners are supported by foreman.
End Point:/cgi-bin/get_legacy_status.cgi
Parameters Required:
Response:
{"legacyStatus":0}
3.42 GET get_ntp_server.cgi
Description: Fetches the ntp server urls to which the miners are configured to currently.
End Point:/cgi-bin/get_ntp_server.cgi
Parameters Required:
Response:
{ |
3.43 GET getAtStatus.cgi
Description: Fetches the Autotune optimisation status and completion percentage.
End Point:/cgi-bin/getAtStatus.cgi
Parameters Required: None
Response:
{ "status": "AT completed Optimizing", "percentage": 100 }
|
3.44 GET getChipLevelData.cgi
Description: Fetches stats of each chain of ASICs in the HB, the cgi fetches
major chiplevel parameters like health, frequency,Chiplevel HashRate and Hardware errors in each chip.
End Point:/cgi-bin/getChipLevelData.cgi
Parameters Required: None
Response:
{ "STATUS": [ { "STATUS": "S", "When": 1744626550, "Code": 88, "Msg": "FDMiner ChipLevel Info", "Description": "FDMiner 2503" } ], "ChipLevel": { "asicFreqChain1": [ [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515] ], "asicHRChain1": [ [478, 453, 459, 458, 483, 469, 458, 488, 456, 489], [464, 464, 480, 481, 453, 479, 470, 464, 463, 469], [467, 472, 478, 460, 471, 482, 488, 463, 466, 483], [448, 464, 465, 458, 480, 487, 501, 471, 469, 457], [490, 490, 486, 459, 487, 462, 457, 443, 476, 466], [483, 462, 474, 490, 475, 484, 466, 482, 488, 488], [475, 472, 435, 475, 490, 483, 455, 462, 462, 467], [457, 491, 430, 456, 462, 483, 463, 461, 453, 479], [451, 433, 454, 487, 454, 473, 481, 488, 446, 459], [475, 446, 482, 498, 485, 470, 472, 490, 472, 488], [465, 457, 465, 468, 446, 479, 457, 441, 465, 483] ], "asicHWEChain1": [ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] ], "asicHealthChain1": [ [103, 99, 101, 100, 103, 100, 102, 103, 101, 103], [101, 100, 101, 100, 98, 101, 102, 99, 101, 101], [102, 102, 101, 101, 99, 103, 103, 100, 99, 102], [102, 101, 103, 101, 101, 103, 103, 101, 101, 102], [101, 103, 102, 100, 103, 101, 100, 100, 102, 99], [101, 100, 100, 103, 102, 102, 102, 101, 103, 102], [101, 102, 98, 101, 103, 103, 99, 100, 100, 101], [100, 103, 97, 100, 101, 103, 103, 101, 101, 101], [100, 99, 101, 103, 101, 99, 103, 103, 99, 101], [103, 100, 103, 103, 102, 103, 102, 102, 100, 101], [100, 101, 103, 101, 100, 102, 101, 102, 100, 102] ], "asicFreqChain2": [ [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515] ], "asicHRChain2": [ [449, 451, 486, 461, 456, 488, 454, 520, 475, 488], [497, 477, 467, 493, 466, 469, 488, 444, 481, 461], [461, 489, 443, 459, 471, 440, 485, 484, 488, 461], [489, 467, 458, 476, 448, 448, 461, 467, 476, 461], [476, 464, 464, 491, 443, 466, 487, 476, 443, 476], [467, 487, 488, 479, 484, 467, 488, 497, 488, 471], [470, 458, 441, 471, 508, 469, 458, 473, 451, 488], [488, 483, 489, 458, 479, 472, 441, 463, 470, 481], [483, 444, 490, 444, 460, 460, 488, 492, 467, 468], [469, 464, 489, 454, 457, 452, 467, 471, 477, 460], [480, 451, 483, 469, 433, 459, 476, 436, 450, 489] ], "asicHWEChain2": [ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] ], "asicHealthChain2": [ [99, 98, 103, 102, 101, 102, 101, 104, 100, 103], [103, 103, 100, 101, 102, 101, 104, 99, 101, 101], [100, 103, 100, 101, 103, 99, 100, 102, 102, 101], [103, 102, 102, 103, 97, 101, 99, 102, 102, 100], [101, 102, 100, 102, 99, 101, 103, 103, 99, 102], [101, 101, 104, 101, 103, 98, 104, 103, 103, 102], [102, 102, 101, 102, 103, 100, 102, 102, 99, 103], [103, 103, 103, 100, 102, 100, 101, 101, 101, 101], [101, 99, 103, 98, 100, 99, 102, 102, 101, 101], [101, 101, 101, 101, 103, 101, 101, 101, 100, 99], [101, 99, 100, 101, 98, 101, 103, 98, 99, 102] ], "asicFreqChain3": [ [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515], [515, 515, 515, 515, 515, 515, 515, 515, 515, 515] ], "asicHRChain3": [ [481, 487, 460, 451, 469, 484, 485, 451, 471, 463], [475, 479, 462, 442, 469, 488, 450, 493, 473, 470], [472, 455, 475, 474, 482, 470, 484, 453, 451, 479], [488, 468, 461, 485, 443, 446, 474, 457, 471, 473], [454, 476, 491, 474, 461, 481, 479, 457, 454, 489], [454, 464, 465, 462, 466, 484, 484, 461, 470, 458], [466, 469, 462, 456, 465, 464, 478, 455, 473, 469], [477, 478, 489, 463, 481, 489, 488, 493, 482, 460], [469, 478, 469, 444, 444, 464, 496, 447, 432, 439], [464, 479, 464, 483, 490, 451, 465, 488, 446, 466], [497, 466, 456, 470, 442, 466, 449, 463, 440, 434] ], "asicHWEChain3": [ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] ], "asicHealthChain3": [ [101, 104, 99, 101, 100, 100, 102, 100, 102, 101], [102, 100, 100, 99, 100, 103, 100, 103, 102, 100], [103, 100, 102, 100, 102, 103, 101, 99, 101, 102], [102, 100, 99, 102, 99, 99, 100, 99, 100, 102], [99, 102, 101, 103, 100, 102, 102, 100, 100, 103], [101, 99, 100, 101, 103, 102, 102, 101, 99, 98], [100, 101, 101, 100, 100, 100, 100, 99, 102, 102], [102, 102, 103, 100, 101, 103, 102, 103, 102, 101], [103, 102, 100, 99, 99, 101, 103, 101, 98, 100], [100, 103, 101, 103, 103, 101, 100, 103, 98, 103], [104, 102, 101, 100, 97, 101, 100, 100, 97, 96] ] }, "id": 1 }
|
3.45 GET getEepromData.cgi
Description: Fetches the EEPROM data from each hash board
End Point:/cgi-bin/getEepromData.cgi
Parameters Required: None
Response:
{ "minerEepromArray": [ { "Hashboard": 1, "EEPROM": "Read successfully", "HbInfoData": "HQDZYRCBDJABI17S8EDS1GM23BK25F1V22B3C1ALBHB56804HQDZ20240101001Y1", "BoardSerialNumber": "HQDZYRCBDJABI17S8", "ChipDie": "ED", "ChipMarking": "S1GM23BK25", "FtVersion": "F1V22B3C1", "ChipTech": "AL", "BoardName": "BHB56804", "FactoryJob": "QDZ20240101001Y1", "HbParamsData": "02 03 05 14 38 2A 27 0B 02 01 01 00 1D ", "Voltage": 1300, "Frequency": 515, "NonceRate": 9995, "PcbTempIn": 42, "PcbTempOut": 56 }, { "Hashboard": 2, "EEPROM": "Read successfully", "HbInfoData": "HQDZYRCBDJABI18SYEDJ1GB24ACCIF1V22B1C1RAGBHB56804HQDZ20240101001Y1", "BoardSerialNumber": "HQDZYRCBDJABI18SY", "ChipDie": "ED", "ChipMarking": "J1GB24ACCI", "FtVersion": "F1V22B1C1", "ChipTech": "RA", "BoardName": "BHB56804", "FactoryJob": "HQDZ20240101001Y1", "HbParamsData": "02 03 05 14 3B 2C 27 0E 02 01 01 00 0F ", "Voltage": 1300, "Frequency": 515, "NonceRate": 9998, "PcbTempIn": 44, "PcbTempOut": 59 }, { "Hashboard": 3, "EEPROM": "Read successfully", "HbInfoData": "HQDZYRCBDJABI17TWEDJ1GM22BP09F1V22B3C1ALBHB56804HQDZ20240101001Y1", "BoardSerialNumber": "HQDZYRCBDJABI17TW", "ChipDie": "ED", "ChipMarking": "J1GM22BP09", "FtVersion": "F1V22B3C1", "ChipTech": "AL", "BoardName": "BHB56804", "FactoryJob": "QDZ20240101001Y1", "HbParamsData": "02 03 05 14 3A 2B 27 08 02 01 01 00 19 ", "Voltage": 1300, "Frequency": 515, "NonceRate": 9992, "PcbTempIn": 43, "PcbTempOut": 58 } ] }
|
3.46 GET getMinerInfo.cgi
Description: Fetches the recent significant events occurred on the miner.
End Point:/cgi-bin/getMinerInfo.cgi
Parameters Required: None
Response:
Last Restart: 04/14/25 06:07:27 Exit due to Switch to Sleep-Mode 04/14/25 06:07:39.512 L3 MAIN Miner in Sleep-Mode 04/14/25 06:25:33.214 L3 MAIN Start Mining . . |
3.47 GET getMinerStatus.cgi
Description: Fetches miner related parameters such as firmware version, Miner variant, Controller board type, Miner status and FW compile time.
End Point:/cgi-bin/getMinerStatus.cgi
Parameters Required: None
Response:
{ "STATUS": [ { "STATUS": "S", "When": 1744630800, "Code": 100, "Msg": "FDMiner Status", "Description": "FDMiner 2503" } ], "MinerStatus": [ { "BMMiner": "2503", "Miner": "Amlogic", "Type": "Antminer S19JPROWP", "MinerStatus": "Mining", "CompileTime": "Mon Mar 31 02:08:42 PM UTC 2025" } ], "id": 1 }
|
3.48 GET getPermissionStatus.cgi
Description: Fetches the access status of the system, below are the return values and their respective access levels:
- 100 - Write
- 150 - Read
- 200 - Denied
End Point:/cgi-bin/getPermissionStatus.cgi
Parameters Required: None
Response:
{ "AccessStatus": 100 }
|
3.49 GET resetAndCheck.cgi
Description: This cgi checks if latest FW for online update is available and updates it automatically if the auto update flag is true
End Point:/cgi-bin/resetAndCheck.cgi
Parameters Required: None
Response:
{ "stats": "success", "code": "U001", "msg": "Update Successfull!" } |
3.50 GET resetAndCheck.cgi
Description: This cgi checks if latest FW for online update is available and updates it automatically if the auto update flag is true
End Point:/cgi-bin/resetAndCheck.cgi
Parameters Required: None
Response:
{ "stats": "success", "code": "U001", "msg": "Update Successfull!" } |
3.51 GET getTimeZone.cgi
Description: Fetches the current time zone the system is configured to along with other available time zone.
End Point:/cgi-bin/getTimeZone.cgi
Parameters Required: None
Response:
{ "timeZones": [ { "name": "Africa/Johannesburg", "utcOffset": "+02:00" }, { "name": "America/Chicago", "utcOffset": "-06:00" }, { "name": "America/Denver", "utcOffset": "-07:00" }, { "name": "America/Halifax", "utcOffset": "-04:00" }, { "name": "America/Los_Angeles", "utcOffset": "-08:00" }, { "name": "America/New_York", "utcOffset": "-05:00" }, { "name": "America/St_Johns", "utcOffset": "-04:30" }, { "name": "Asia/Kolkata", "utcOffset": "+05:30" }, { "name": "Asia/Tokyo", "utcOffset": "+09:00" }, { "name": "Australia/Sydney", "utcOffset": "+10:00" }, { "name": "Europe/London", "utcOffset": "+01:00" }, { "name": "Europe/Moscow", "utcOffset": "+03:00" }, { "name": "Europe/Paris", "utcOffset": "+01:00" }, { "name": "Pacific/Auckland", "utcOffset": "+12:00" }, { "name": "Pacific/Honolulu", "utcOffset": "-10:00" }, { "name": "UTC", "utcOffset": "+00:00" } ], "setTimeZone": [ { "name": "UTC", "utcOffset": "+00:00" } ] }
|
3.52 GET getDevFeeInfo.cgi
Description: Fetch the parameters related to Dev Fee.
End Point:/cgi-bin/getDevFeeInfo.cgi
Parameters Required: None
Response:
{ "pool": "btc.foundryusapool.com", "port": "3333", "user": "btcfirmware1.C_9_btcfoundryu_ccc_S19JXPOEM24519", "pass": "x", "quota": "2.7" }
|
3.53 GET getBlockFoundInfo.cgi
Description: Fetch the info related to the previous found block.Returns “File Not Found” if not available.
End Point:/cgi-bin/getBlockFoundInfo.cgi
Parameters Required: None
Response:
03/28/25 15:22:48 Block Found Diff 1288607092084618.8/113757508810854.0 |
3.54 POST set_miner_conf.cgi
Description:.Configures Pool information, Miner Modes.
End Point: /cgi-bin/set_miner_conf.cgi
Request:
{ "bitmain-fan-ctrl": true, "bitmain-fan-pwm": "10", "freq-level": "70", "miner-mode": 1, "pools": [ { "pass": "123", "url": "stratum+tcp://btc.foundryusapool.com:3333", "user": "ccc.S19XP_B1" }, { "pass": "123", "url": "stratum+tcp://btc.foundryusapool.com:443",
"user": "ccc.S19XP_B1" }, { "pass": "123", "url": "stratum+tcp://btc.foundryusapool.com:25", "user": "ccc.S19XP_B1" } ] } |
Parameters Required:
- Supported Miner Mode parameters:
0 - Normal Mode
1 - Sleep Mode
2 - High Energy Mode
3 - Low Power Mode
4 - Advanced Mode
- Pools parameters:
“pass”: Pool password
“url”: Pool URL
“user”: Username
*Note: Only above-mentioned parameters are currently supported to configure.
3.55 POST configMiner.cgi
Description:.These sets of requests are used to set Crucial Mining Parameters.
Note*: The Request JSON should contain only the command’s value and
parameter’s value as shown below,
{“fanOverride”:“0”}
The Cgi automatically parses this to the standard format.
i.e., {“command” : “fanOverride”, “parameter” : “0”}
End Point: /cgi-bin/configMiner.cgi
1. Request:
{"fanOverride":"user-input"}
Description: Changes the fan mode.
Parameters:
Replace “user-input” in request to required parameter as shown below:
0 - Auto Fan mode
1 - Immersion mode
2 - Fan Manual mode
- Request:
{"targetHashrate":"user-input"}
Description: Modifies the target hash rate to set value in Auto Mining Mode.
Parameters:
Replace “user-input” in request to required integer value.
Prescribed Value - 20-170 for the miners in air cooled mode.
20 -300 for the miners in immersion cooling mode.
Note*: Miner should be running in advanced work mode to post this command
- Request:
{"mode":"user-input"}
Description: Modifies the Mining Mode.
Parameters:
Replace “user-input” in request to required parameter as shown below:
0 - Auto mining mode
1- Fixed mining mode
- Request:
{"setMinerModel":"user-input"}
Description: Modifies the Miner-model of the machine.
Parameters:
Replace “user-input” in request to required parameter as shown below:
//confirm before final submission: -1 - to re-initiate auto miner detection
0 - S19
1 - S19j Pro
2 - S19 XP
3 - S19j Pro with PIC
4 - S19 with 126 ASICs
5 - S19k Pro
- Request:
{"setVoltage":"user-input"}
Description: Modifies the Voltage delivered to Hashboards in Fixed Mining Mode.
Parameters:
Replace “user-input” in request to required Voltage Value in.
Any Value within 12V to 17V is accepted based on the PSU version used by the miner.
Note*: For setting the voltage as 12V, the parameter should be 120, Similarly for setting the voltage as 15.1V, the parameter should be 151 and so on.
- Request:
{"setFrequency":"user-input"}
Description: Modifies the Clock Frequency of the ASICs on Hash boards, in Fixed Mining Mode.
Parameters:
Replace “user-input” in request to required Frequency Value in Integer.
Any Integer Value within 0Hz -1000MHz is accepted.
- Request:
{"HB1Enable":"user-input"}
Description: Enables or Disables Hash Board 1.
Parameters:
Replace “user-input” in request to :
true - to enable the Hashboard
false - to disable the Hashboard
- Request:
{"HB2Enable":"user-input"}
Description: Enables or Disables Hash Board 2.
Parameters:
Replace “user-input” in request to:
true - to enable the Hashboard
false - to disable the Hashboard
- Request:
{"HB3Enable":"user-input"}
Description: Enables or Disables Hash Board 3.
Parameters:
Replace “user-input” in request to:
true - to enable the Hashboard
false - to disable the Hashboard
- Request:
{ "command" : "addpool" , "parameter" :"[poolURL:port] , [workername],[password],[index]" } |
Description: Add new Pool to the existing Pools.
Parameters:
- poolURL:port Pool : URL and port number are entered in the same format.
Note: stratum+tcp not to be included in the URL. - [workername] : Worker name of the miner.
- [password] : Pool Password.
- [index]: Priority of the pool that is being added is entered here, this field is not mandatory.
- Request: {"setTargetChipTemp":"user-input"}
Description: Modify the critical/shutdown temperature of the miner.
Parameters: Replace “user-input” in request to any value between 40 - 90.
- Request: {"setTargetChipTemp":"user-input"}
Description: Modify the critical/shutdown temperature of the miner.
Parameters: Replace “user-input” in request to any value between 40 - 90 in string format.
- Request: {"setManualFanSpeed":"user-input"}
Description: Modify the fan speed when fans are running in Manual Mode.
Parameters: Replace “user-input” in request to any value between 0 - 100 in string format.
- Request:
{ |
Description: Modify the existing pool configuration.
Parameters:
- "address": Pool address or URL
- "password": Respective Pool Password
- "port": Port number for pool communications
- "username": User name
NOTE*: All parameters should be given in “string” data type in JSON format.
- Request: {“setMinerMode":"user-input"}
Description: Modify the Miner Mode.
Parameters:
“0” - Normal Mode
“1” - Sleep Mode
“2” - High Energy Mode
“3” - Low Power Mode
“4” - Advanced Mode
NOTE*: All parameters should be given in “string” data type in JSON format.
3.56 POST getNsLookup.cgi
Description: Makes Nslookup linux tool available to users to map IPs to DNS.
End Point:/cgi-bin/getNsLookup.cgi
Parameters Required:
“IP”: Ip Address to be probed.
"networkTool": Enter Network Tool Identification code as 2
Request:
{"IP":"","networkTool":"2"} |
Response:
Name: 1.1.1.1 |
3.57 POST getPing.cgi
Description: Pings the server to check the connectivity.
End Point:/cgi-bin/getPing.cgi
Parameters Required:None
“IP”: Ip Address to be probed.
"networkTool": Enter Network Tool Identification code as 1
Request:
{"IP":"" ,"networkTool":"1"} |
Response:
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data. |
3.58 POST getTraceRoute.cgi
Description: Provides a map of how data on the internet travels from its source to its destination
End Point:/cgi-bin/getTraceRoute.cgi
Parameters Required: None.
“IP”: Ip Address to be probed.
"networkTool": Enter Network Tool Identification code as 3
Request:
{"IP":"" ,"networkTool":"3"} |
Response:
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 38 byte packets |
3.59 POST set_network_conf.cgi
Description: Modify network configuration for DHCP or static IP.
End Point:/cgi-bin/set_network_conf.cgi
Parameters Required:
For static IP:
"ipPro":”2” for static.
"ipHost": Hostname to be configured.
"ipAddress":User requested IP address in Static configuration.
"ipGateway": User requested gateway in Static configuration.
"ipDns": User requested DNS Server in Static configuration.
"ipSub": User requested Subnet mask in Static configuration.
For DHCP IP:
"ipPro": “1” for DHCP.
"ipHost": Hostname to be configured.
Request:
{"ipPro":2,"ipHost":"ip120v2","ipAddress":"192.168.0.120","ipGateway":"192.168.0.1","ipDns":"8.8.8.8","ipSub":"255.255.255.0"} |
Response:
{"stats":"success","code":"N000","msg":"OK!"}
3.60 POST passwd.cgi
Description: Reset the GUI/Web application password and User name.
End Point:/cgi-bin/passwd.cgi
Parameters Required:
“username”: New User name to be updated/ current username(Not a mandatory field).
”curPwd”: Old password currently in use
”newPwd”:New password to be set
”confirmPwd”: New password re entry for confirmation.
Request:
{ |
Response:(After successful update of password)
{ |
3.61 POST setATStat.cgi
Description: Set the Chip Level tuning status Under miner working in Autotune Mode(0 for Disabled & 1 for Enabled)
End Point:/cgi-bin/setATStat.cgi
Parameters Required:
“0” : Disable chip level auto tuning.
“1” : Enable chip level auto tuning.
Request:
{"chipTuningMode": "1"}
Response:
{"status":"success","message":"Command:{"command":"chipTuningMode","parameter":"1"}" Sent succesfully
Note*:If the same auto tune configuration is resent server responds as"Duplicate ChipTuning Mode" else the configuration will successfully updated
This cgi is decommissioned from FW V2.4.4 as this setting can be set in configMiner.cgi.
3.62 POST blink.cgi
Description: Locate Miner By blinking LEDs and Sounding Buzzer for Ten Minutes.
End Point:/cgi-bin/blink.cgi
Parameters Required:
true: to turn ON blinking
false: to turn OFF blinking
Request:
{"blink":"user-input"}
3.63 POST reIdentify.cgi
Description: To reidentify the miner model of the machine.
Use Case: Identifies the miner when the controller board is swapped to a new machine or fails to identify the current miner identity.
End Point: /cgi-bin/reIdentify.cgi
Parameters Required:
None
Request:
{"reIdentifyMiner":"-1"}
Response:
{"status":"success","message":"null"}
3.64 POST upgrade.cgi
Description - Update files are provided with .tar.gz extensions, they can be used in GUI , btcTools and also with this API.
End Point: /cgi-bin/upgrade.cgi
Parameters Required: Upload file with format ‘.tar.gz’ .
Response:
Refer upgrade Return Types for return types of the CGI.
3.65 POST reset_conf.cgi
Description - resets all the configuration settings.
End Point: /cgi-bin/reset_conf.cgi
Request:
No Request - The settings get reset once the cgi is called
Response:
{"stats":"success","code":"U001","msg":"null"}
3.66 POST set_legacy_mode.cgi
Description - sets the legacy mode configuration to true or false.
“0” - False
“1” - False
End Point: /cgi-bin/set_legacy_mode.cgi
Request:
{"legacyMode":1} |
Response:
{"legacyMode":1} |
3.67 POST set_ntp_server.cgi
Description - Configures the NTPs to user set servers
End Point: /cgi-bin/set_ntp_server.cgi
Request:
{ |
|
Response:
{ |
3.68 POST getNsLookup.cgi
Description: When called, sets the host name of the miner to standard nomenclature (i.e., foundry-<MAC address>)
End Point: /cgi-bin/setDefaultName.cgi
Parameters Required: None
Request: NA
Response:
{ "stats": "success", "code": "P000", "msg": "Success : Default Hostname set!" }
|
3.69 POST setTimeZone.cgi
Description: Changes the system time zone.
Available time zones:
TimeZone |
utcOffset |
Africa/Johannesburg |
+02:00 |
America/Chicago |
-06:00 |
America/Denver |
-07:00 |
America/Halifax |
-04:00 |
America/Los_Angeles |
-08:00 |
America/New_York |
-05:00 |
America/St_Johns |
-04:30 |
Asia/Kolkata |
+05:30 |
Asia/Tokyo |
+09:00 |
Australia/Sydney |
+10:00 |
Europe/London |
+01:00 |
Europe/Moscow |
+03:00 |
Europe/Paris |
+01:00 |
Pacific/Auckland |
+12:00 |
Pacific/Honolulu |
-10:00 |
UTC |
+00:00 |
End Point: /cgi-bin/setTimeZone.cgi
Parameters Required: Timezone
Request:
{"zone": "UTC"} |
Response:
{"stats":"success","msg":"Time Zone set to UTC"} |
3.69 POST deleteLogs.cgi
Description: Deletes the older logs except for present and previous days logs (both csv and text files will be deleted)
End Point:/cgi-bin/deleteLogs.cgi
Parameters Required: Log File names
Request:
{ "logs": [List_of_logs_to_be_deleted], "csv": [List_of_csv_to_be_deleted] } |
|
Response:
03/28/25 15:22:48 Block Found Diff 1288607092084618.8/113757508810854.0 |
3.70 POST uninstall.cgi
Description: Uninstalls FDOS from the miner.
End Point:/cgi-bin/uninstall.cgi
Parameters Required: None
Request: NA
Response: NA