Skip to main content

Trim Derived Tables

Trims derived tables from the blockchain database to free space. Requires admin password. This is a POST-only endpoint.

Request

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

Parameters

NameTypeRequiredDescription
adminPasswordstringConditionalAdmin password required if nxt.adminPassword is set.

Response

{
"done": true
}

Response Fields

FieldTypeDescription
donebooleantrue if trimming completed successfully.

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().trimDerivedTables().

Source: TrimDerivedTables.java.

Example

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