FirmwareAPI DocumentationCGminer commands

coin

Reports the hashing algorithm

coin

Description

Reports the hashing algorithm of the miner in Hash Method: equihash on Antminer Equihash ASIC miners (Zcash) and sha256 on every other model, and the block the current job is working on: the network difficulty and time of the block being mined, and the hash of the block it builds on. The block fields follow the first connected user pool (never the dev-fee pool) and read zero until that pool has sent a job.

Command

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

Examples

$ echo '{"command": "coin"}' | nc $MINER_IP 4028 | jq
{
  "COIN": [
    {
      "Current Block Hash": "00000000000000000000c4d8e2a1f93b7d0e6c5a4f3b2a1908f7e6d5c4b3a291",
      "Current Block Time": 1790627650.0,
      "Hash Method": "sha256",
      "LP": true,
      "Network Difficulty": 152123456789012.0
    }
  ],
  "STATUS": [
    {
      "Code": 78,
      "Description": "LUXminer 2026.9.28.204000-ecdf06e",
      "Msg": "LUXminer coin",
      "STATUS": "S",
      "When": 1790628000
    }
  ],
  "id": 1
}

Field details

FieldNotes
Current Block HashHash of the block the current job builds on, as block explorers print it. "" until the first job.
Current Block TimeTime (ntime) of the first job received for the current block, chain time rather than local time. 0 until the first job.
Hash MethodThe hashing algorithm: equihash on Antminer Equihash ASIC miners, sha256 otherwise.
LPAlways true.
Network DifficultyDifficulty of the block the current job is mining, from the job's nbits on the chain's difficulty-1 base (Bitcoin, or Zcash mainnet on Antminer Equihash ASIC miners). 0 until the first job.

On this page