Skip to main content

System Endpoints


GET /api/system/info​

Full system snapshot. This is what NM Monitor s Dashboard reads on every refresh.

Response​

{
"identity": {
"hwModel": "NMMiner",
"hostName": "nm-cyd-c5-ab12cd",
"fwVersion": "v2.0.04",
"rssi": -52
},
"miner": {
"hashRate": 0.000956432,
"sAccepted": 128,
"sRejected": 2,
"uptimeSeconds": 4321,
"uptimeEver": 58732,
"networkDiff": "112392546849.9999",
"poolDiff": "0.00050",
"lastDiff": "0.00073",
"bestDiffSession": "0.04215",
"bestDiffEver": "1.78330",
"blkhits": 0,
"freeHeap": 118432,
"minFreeHeap": 94312
},
"stratum": {
"url": "solobtc.nmminer.com:3333",
"user": "bc1q....worker1"
},
"temps": {
"vcore": 51.3,
"asic": null
},
"storage": {
"fsTotal": 1048576,
"fsUsed": 262144
}
}

Field reference​

PathTypeMeaning
identity.hwModelstringAlways "NMMiner".
identity.hostNamestringDevice hostname.
identity.fwVersionstringFirmware version.
identity.rssiintegerWiFi signal strength (dBm).
miner.hashRatenumberCurrent hashrate, in giga-hashes per second (multiply by 1e9 to get H/s).
miner.sAcceptedintegerShares accepted by the pool.
miner.sRejectedintegerShares rejected by the pool.
miner.uptimeSecondsintegerSeconds since the current boot.
miner.uptimeEverintegerCumulative uptime across boots, in seconds.
miner.networkDiffstringCurrent Bitcoin network difficulty (decimal).
miner.poolDiffstringCurrent share difficulty set by the pool.
miner.lastDiffstringDifficulty of the most recent submitted share.
miner.bestDiffSessionstringBest share difficulty this boot.
miner.bestDiffEverstringBest share difficulty ever.
miner.blkhitsintegerLifetime count of network-difficulty hits (block luck).
miner.freeHeapintegerCurrent free heap in bytes.
miner.minFreeHeapintegerLowest free heap observed this boot.
stratum.urlstringActive pool host:port.
stratum.userstringAuthenticated worker name (wallet.worker).
temps.vcorenumber / nullCore temperature in °C, or null on boards without an on-chip sensor.
temps.asicnullReserved for future hardware. Always null on ESP32.
storage.fsTotalintegerOn-device file system size in bytes.
storage.fsUsedintegerOn-device file system usage in bytes.

Example​

curl http://192.168.1.42/api/system/info | jq '.miner.hashRate * 1e9'
# → 956432 (i.e. 956.4 KH/s)

POST /api/system/restart​

Reboots the miner immediately.

Request​

No body.

Response​

{ "status": "ok" }

The reboot happens ~600 ms after the response is sent so the connection closes cleanly.

Example​

curl -X POST http://192.168.1.42/api/system/restart
warning

A restart drops the Stratum session and any unsubmitted shares. Avoid scripting periodic restarts unless you really need to.