FirmwareAPI DocumentationCGminer commands

addpool

Adds a new pool to a group

addpool

Description

Adds a new pool to a group. By default, the pool is added in the current group, at the bottom of the list. You can change this behavior with the optional group_id parameter.

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

To change an existing pool instead of adding one, use editpool. addpool always appends to the end of the group, so removing and re-adding a pool in order to change it loses its position in the priority order.

If your password contains a comma, send parameter as a JSON list rather than a comma-separated string — otherwise the password is split and the remainder is read as the group_id. See Sending a list as the parameter.

{ "command": "addpool", "parameter": ["stratum+tcp://btc.global.luxor.tech:700", "account.worker", "a,b", "0"] }

Command

$ echo '{"command": "addpool", "parameter": "stratum+tcp://btc.global.luxor.tech:700,account.worker,"}' | nc $MINER_IP 4028 | jq

Examples

$ echo '{"command": "addpool", "parameter": "stratum+tcp://btc.global.luxor.tech:700,account.worker,"}' | nc $MINER_IP 4028 | jq
{
  "STATUS": [
    {
      "Code": 55,
      "Description": "LUXminer 2024.2.19.131822-ef17c0c4",
      "Msg": "Added pool 2: 'btc.global.luxor.tech:700'",
      "STATUS": "S",
      "When": 1672770090
    }
  ],
  "id": 1
}

Parameters

ParameterNotes
urlURL of the stratum server.
userUser for the stratum connection.
passwordPassword for the stratum connection. Since this parameter is required, you still need to provide the comma (,) separator even if you don't have a password.
group_idOptional. The ID of the group, as shown in the groups command.

On this page