Your machine's full transaction logs, including fiat values at time of transaction, can be exported via a commands in your terminal. The commands generates a CSV (comma separated values) spreadsheet, optionally encrypts it with your PGP key for security and privacy, and sends to your email address.
- lamassu-transactions-csv – The main log showing cash-in and cash-out transactions. Encrypted.
- lamassu-tx-unencrypted – The main log. Unencrypted.
- lamassu-bills-log – A log of each individual bill insert and their denomination. Encrypted.
- lamassu-bills-unencrypted – The above. Unencrypted.
- lamassu-dispense-log – Shows each cash-out event, current bill counts, and which bills were dispensed.
Importing your PGP key
For privacy, we recommend that you export encrypted logs, which uses your PGP key. If you're already running bitcoind for a wallet, you've imported a PGP key and can skip this step.
Once uploaded to a keyserver, import your key to your Lamassu server by running:
gpg --search-keys --keyserver <keyserver> <key ID or email address>
Exporting the logs
With your key imported, run the transactions script in your server, followed by the email address associated with your key:
You'll find the encrypted CSV file in your inbox.
For individual bill logs, run:
Updating your lamassu-scripts version
If you receive the result 'command not found' when running the above, update your scripts version by running the following three commands, individually:
npm -g install lamassu-scripts sed -i '/lamassu-scripts/d' ~/.bashrc export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Manually viewing the logs
If you wish to view the latest logs without leaving the server, run each of the following commands individually. After running the third command, if your transaction history is long enough, you can scroll up and down with your keyboard's arrow keys to view the transactions, and press the 'q' button to exit this view.
su postgres psql lamassu SELECT * FROM transactions; \q exit