Skip to main content

Mining Settings

Primary & fallback pool URLs, wallets and worker passwords.


GET /api/setting/mining

Response

{
"PrimaryPool": "stratum+tcp://solobtc.nmminer.com:3333",
"PrimaryAddress": "bc1q....worker1",
"PrimaryPassword": "x",
"SecondaryPool": "stratum+tcp://au.solobtc.nmminer.com:3333",
"SecondaryAddress": "bc1q....worker1",
"SecondaryPassword": "x"
}
FieldTypeMeaning
PrimaryPoolstringPrimary Stratum URL (stratum+tcp://... or stratum+ssl://...).
PrimaryAddressstringWorker name — typically <wallet>.<worker>.
PrimaryPasswordstringWorker password. Most pools accept x.
SecondaryPoolstringFallback pool URL. Used when the primary is unreachable.
SecondaryAddressstringFallback worker name.
SecondaryPasswordstringFallback worker password.

POST /api/setting/mining

Partial update.

Request

{
"PrimaryPool": "stratum+tcp://solobtc.nmminer.com:3333",
"PrimaryAddress": "bc1q....worker1",
"PrimaryPassword": "x"
}

Response

200 OK with body OK. 400 on invalid JSON.

Example

curl -X POST http://192.168.1.42/api/setting/mining \
-H "Content-Type: application/json" \
-d '{"PrimaryPool":"stratum+ssl://solobtc.nmminer.com:3333","PrimaryAddress":"bc1q....worker1"}'
tip

Changes take effect the next time the miner reconnects to a pool — usually within a few seconds.