Râu Cao 0e8228a0bb
Fuzzing for dates
In addition to fuzzing amounts, this shifts all dates to the past by a
random number of days (between 7 and 14).
2025-05-03 15:19:28 +04:00
2025-05-02 16:26:48 +04:00
2025-05-02 16:16:57 +04:00
2025-05-02 16:23:19 +04:00
2025-05-02 16:23:19 +04:00
2025-05-03 15:19:28 +04:00
2025-05-02 16:51:42 +04:00

lndhub.go stats

A collection of Deno scripts for exporting anonymized statistics from lndhub.go databases.

Requirements

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 established
  • MAX_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
Deno scripts for exporting anonymized statistics from lndhub.go databases
Readme 55 KiB
Languages
TypeScript 100%