Skip to main content

Full Reset

Resets the entire blockchain. This is a destructive operation that reinitializes the blockchain state. Requires admin password. This is a POST-only endpoint.

Request​

POST /nxt?requestType=fullReset&adminPassword=<adminPassword>

Parameters​

NameTypeRequiredDescription
adminPasswordstringConditionalAdmin password required if nxt.adminPassword is set.

Response​

{
"done": true
}

Response Fields​

FieldTypeDescription
donebooleantrue if the full reset was initiated.

Error Responses​

ConditionResponse
Runtime exception during resetError response from JSONData.putException()

Notes​

  • This endpoint does not require the blockchain to be running (requireBlockchain = false).
  • Not chain-specific.
  • Requires admin password authentication (requirePassword = true).
  • Requires POST method (requirePost = true).
  • Calls Nxt.getBlockchainProcessor().fullReset() to reset the entire blockchain state.

Source: FullReset.java.

Example​

curl -X POST "http://localhost:22024/nxt" \
-d "requestType=fullReset" \
-d "adminPassword=mySecretPassword"