Firmware (LuxOS)
API Docs
CGminer commands
switchpool

switchpool

Description

Switches a pool to be the top of it's group. This makes that pool the "first choice" of the group, and will trigger a disconnect if it is not the first pool already. See Groups and Pools for details.

As a quirk, LUXminer allows this command to target any pool.

Note: If autosave is disabled, the changes will be lost after a reboot.

Command

$ echo '{"command": "switchpool", "parameter": "1"}' | nc $MINER_IP 4028 | jq

Examples

$ echo '{"command": "switchpool", "parameter": "1"}' | nc $MINER_IP 4028 | jq
{
  "STATUS": [
    {
      "Code": 27,
      "Description": "LUXminer 2024.2.19.131822-ef17c0c4",
      "Msg": "Switching to pool 1: 'btc.global.luxor.tech:700'",
      "STATUS": "S",
      "When": 1672770090
    }
  ],
  "id": 1
}

Parameters

ParameterNotes
pool_idNumeric ID of the pool. It is the same value as returned on pools command.