FirmwareAPI DocumentationCGminer commands
enablepool
Enables a pool
enablepool
Description
Enables a specific pool. If the pool is already enabled, the command returns an error (code 49, Pool <n>:'<url>' already enabled) and nothing changes. To set the enabled state without that error, use editpool with enabled=true.
If the enabled pool has a higher priority within the group (i. e. it is "on top" of the currently active pool), the current pool connection will be closed and a connection attempt will be made to this pool.
Note: If autosave is disabled, the changes will be lost after a reboot.
Command
$ echo '{"command": "enablepool", "parameter": "1"}' | nc $MINER_IP 4028 | jqExamples
$ echo '{"command": "enablepool", "parameter": "1"}' | nc $MINER_IP 4028 | jq
{
"STATUS": [
{
"Code": 47,
"Description": "LUXminer 2024.2.19.131822-ef17c0c4",
"Msg": "Enabling pool 1: 'btc.global.luxor.tech:700'",
"STATUS": "S",
"When": 1672770090
}
],
"id": 1
}Parameters
| Parameter | Notes |
|---|---|
pool_id | Positional index of the pool, shown as POOL in pools (not PoolId). See POOL and PoolId. |