Skip to main content

StopForging

Stops forging for a specific account (via secretPhrase/privateKey/publicKey) or all accounts (via adminPassword).

Request​

POST /nxt?requestType=stopForging

All endpoints use port 22024 by default.

Parameters​

NameTypeDescriptionRequired
secretPhrasestringSecret passphrase for accountNo
privateKeystringPrivate key for accountNo
publicKeystringPublic key for accountNo
adminPasswordstringAdmin password to stop all forgingNo

Response​

When stopping specific account:

{
"foundAndStopped": true,
"blocksmithsCount": 0,
"errorCode": 0,
"errorDescription": ""
}

When stopping all (adminPassword):

{
"stopped": 5,
"errorCode": 0,
"errorDescription": ""
}

Example​

# Stop forging for specific account
curl -X POST "http://localhost:22024/nxt?requestType=stopForging" \
-d "secretPhrase=your_secret_passphrase"

# Stop all forging (requires admin password)
curl -X POST "http://localhost:22024/nxt?requestType=stopForging" \
-d "adminPassword=admin_password"