In addition to fuzzing amounts, this shifts all dates to the past by a random number of days (between 7 and 14).
lndhub.go stats
A collection of Deno scripts for exporting anonymized statistics from lndhub.go databases.
Requirements
- Deno (>= 2.3)
Configuration
Copy .env.example
to .env
and edit the values. Or use system environment
variables instead.
BATCH_SIZE
controls how many parallel connections to your database are establishedMAX_INVOICES
will skip users with extreme amounts of transactions (above this threshold)
Generate anonymization key
Generate a random key so you can use it as ANONYMIZATION_KEY
:
Usage
deno run generate-key.ts
Generate daily stats per user
This will generate daily statistics per user, exported to daily-stats.csv
:
- Anonymized user ID
- Date
- Balance Start of Day
- Balance End of Day
- Balance Max Day
- Balance Min Day
- Total Flow Out
- Total Flow In
Usage
deno run -A generate-stats.ts
Contact
E-Mail, Chat, Social: raucao@kosmos.org
Description
Languages
TypeScript
100%