FirmwareAPI DocumentationCGminer commands

lcd

Compact digest of the mining statistics

lcd

Description

A compact digest of the summary-level statistics in a single item, the cgminer lcd command, for tools that poll one small reply instead of summary, pools and devs. Every value comes from the same data those commands report. The pool and share fields follow the first connected user pool (never the dev-fee pool); the hashrate and temperature cover the boards that are alive.

On Antminer Equihash ASIC miners (Zcash), hashrate is measured in solutions per second. The field names are kept for compatibility, and the unit follows the coin: the GHS fields are in KSol/s.

Command

$ echo '{"command": "lcd"}' | nc $MINER_IP 4028 | jq

Examples

$ echo '{"command": "lcd"}' | nc $MINER_IP 4028 | jq
{
  "LCD": [
    {
      "Best Share": 735633,
      "Current Pool": "btc.global.luxor.tech:700",
      "Elapsed": 2330,
      "Found Blocks": 0,
      "Found Blocks All Time": 0,
      "GHS 5m": 13698.52,
      "GHS 5s": 13084.18,
      "GHS av": 13701.74,
      "Last Found Block": 0,
      "Last Found Block Hash": "",
      "Last Found Block Height": 0,
      "Last Share Difficulty": 32768.0,
      "Last Share Time": 1672770087,
      "Last Valid Work": 1672770087,
      "Network Difficulty": 152123456789012.0,
      "Temperature": 82.0,
      "User": "worker"
    }
  ],
  "STATUS": [
    {
      "Code": 125,
      "Description": "LUXminer 2024.2.19.131822-ef17c0c4",
      "Msg": "LCD",
      "STATUS": "S",
      "When": 1672770090
    }
  ],
  "id": 1
}

Field details

FieldNotes
Best ShareAll-time highest accepted share difficulty, the same value as Best Share in summary.
Current PoolURL of the current user pool, "" when no user pool is listed.
ElapsedNumber of seconds since the miner started.
Found BlocksBlocks found since the miner started, counted from the miner's side only; see Found Blocks.
Found Blocks All TimeBlocks found over the life of the miner, persisted across restarts.
GHS 5mHashrate, in GH/s, of the last 5 minutes.
GHS 5sHashrate, in GH/s, of the last 5 seconds.
GHS avAverage hashrate in GH/s.
Last Found BlockUnix time at which the pool accepted the share of the last found block, 0 when the miner has never found one.
Last Found Block HashHash of the last found block, as block explorers print it. "" when the miner has never found one.
Last Found Block HeightHeight of the last found block (BIP34). 0 when the miner has never found one and on Antminer Equihash ASIC miners.
Last Share DifficultyDifficulty of the last share the current pool accepted.
Last Share TimeUnix time of the last share the current pool accepted.
Last Valid WorkUnix time of the last accepted share on any board.
Network DifficultySame as Network Difficulty in coin, on the same scale as Best Share.
TemperatureHottest board temperature among the boards that are alive, in °C; 0.0 when no board reports one.
UserWorker name on the current user pool, "" when no user pool is listed.

On this page