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
| Name | Type | Description | Required |
|---|---|---|---|
secretPhrase | string | Secret passphrase for account | No |
privateKey | string | Private key for account | No |
publicKey | string | Public key for account | No |
adminPassword | string | Admin password to stop all forging | No |
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"