Zum Hauptinhalt springen

Mining-Einstellungen

Primäre & Fallback-Pool-URLs, Wallets und Worker-Passwörter.


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"
}
FeldTypBedeutung
PrimaryPoolstringPrimäre Stratum-URL (stratum+tcp://... oder stratum+ssl://...).
PrimaryAddressstringWorker-Name — typischerweise <wallet>.<worker>.
PrimaryPasswordstringWorker-Passwort. Die meisten Pools akzeptieren x.
SecondaryPoolstringFallback-Pool-URL. Wird verwendet, wenn der primäre nicht erreichbar ist.
SecondaryAddressstringFallback-Worker-Name.
SecondaryPasswordstringFallback-Worker-Passwort.

POST /api/setting/mining

Partielles Update.

Request

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

Response

200 OK mit Body OK. 400 bei ungültigem JSON.

Beispiel

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"}'
tipp

Änderungen werden wirksam, wenn der Miner das nächste Mal eine Verbindung zu einem Pool herstellt — normalerweise innerhalb weniger Sekunden.