matroskin 0.1.0

whatsminer api client lib
Documentation
# get.device.info

Retrieve comprehensive information about the miner's status and configuration.

The response includes details on the network, miner hardware, system firmware, power supply, and error codes.

## Parameters

| Name | Type | Description |
|------|------|-------------|
| param (optional) | String | An optional filter to retrieve a specific section of information. Valid values include `miner`, `system`, `power`, `network`, `salt`, or `error-code`. If omitted, all sections are returned. |

## Examples

### Request (Full Info)

```json
{
    "cmd": "get.device.info"
}
```

### Request (Filtered for Network)

```json
{
    "cmd": "get.device.info",
    "param": "network"
}
```

### Response

```json
{
    "code": 0,
    "when": 1692685443,
    "msg": {
        "network": {
            "ip": "192.168.2.98",
            "proto": "dhcp",
            "netmask": "255.255.255.0",
            "dns": "192.168.2.1",
            "mac": "CA:01:14:00:04:EB",
            "gateway": "192.168.2.1",
            "hostname": "WhatsMiner"
        },
        "miner": {
            "working": "false",
            "type": "M30S++_VH70",
            "hash-board": "H70",
            "detect-hash-rate": "33780:33484:34102:0",
            "cointype": "BTC/BCH/BSV",
            "pool-strategy": "FAILOVER",
            "heatmode": "",
            "hash-percent": "",
            "eeprom-liquid-cooling": "0-0-0",
            "chipdata0": "H35A07-22020801 BINV01-196803C",
            "chipdata1": "H35A07-22020801 BINV01-196803C",
            "chipdata2": "H35A07-22020801 BINV01-196803C",
            "fast-boot": "disable",
            "board-num": "3",
            "pcbsn0": "HHM1EK46702216Kxxxxx",
            "pcbsn1": "HHM1EK46702216Kxxxxx",
            "pcbsn2": "HHM1EK46702216Kxxxxx",
            "miner-sn": "xxxxxxxxxxxxx",
            "power-limit-set": "3600",
            "web-pool": 1
        },
        "system": {
            "api": "3.0.0",
            "platform": "H616",
            "fwversion": "20240722.07.51.REL",
            "control-board-version": "CB6V10",
            "btrom": "1",
            "apiswitch": "1",
            "ledstatus": "auto"
        },
        "power": {
            "type": "P221C",
            "mode": "1",
            "hwversion": "R00033",
            "swversion": "20201224_P00031.20210326_S00037",
            "model": "P22-12-3300-C",
            "iin": 14.8,
            "vin": 220.5,
            "vout": 1209,
            "pin": 3264,
            "fanspeed": 6112,
            "temp0": 41.3,
            "sn": "1355A2123xxxxxx",
            "vendor": "1"
        },
        "salt": "px5hoXa9",
        "error-code": [
            {
                "531": "2025-03-12 14:52:35",
                "reason": "Slot1 not found."
            },
            {
                "532": "2025-03-12 14:52:35",
                "reason": "Slot2 not found."
            }
        ]
    },
    "desc": "get.device.info"
}
```