How to change Nxt/Ardor wallet settings to keep the account ledger table untrimmed?
To generate a full ledger for a specific account set the following nxt.properties:

# Do not trim the ledger
nxt.ledgerTrimKeep=0

# Only log these specific accounts
nxt.ledgerAccounts=NXT-V4D7-D3XW-JX9Z-EAC8K;NXT-XK4R-7VJU-6EQG-7R335


To rebuild the ledger, invoke the scan API with parameter height set to 0.
This operation can run for several hours depending on your configuration.