API Docs
cgminer commands
addpool

addpool

Description

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

Command

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

Example

$ echo '{"command": "addpool", "parameter": "stratum+tcp://btc.global.luxor.tech:700,account.worker,"}' | nc $MINER_IP 4028 | jq
{
  "STATUS": [
    {
      "Code": 55,
      "Description": "cgminer 1.0.0",
      "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.