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 | jqExamples
$ 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
| Field | Notes |
|---|---|
Current Block Hash | Hash of the block the current job builds on, as block explorers print it. "" until the first job. |
Current Block Time | Time (ntime) of the first job received for the current block, chain time rather than local time. 0 until the first job. |
Hash Method | The hashing algorithm: equihash on Antminer Equihash ASIC miners, sha256 otherwise. |
LP | Always true. |
Network Difficulty | Difficulty 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. |