Debian Codegraph @

src/blockchain_utilities/blockchain-stats-readme.md

raw symbols SCIP
1 # Monero Blockchain Stats
2
3 Monero Blockchain Stats utlity exports daily statistics for the monero blockchain from creation through current state.
4
5 ## Usage:
6
7 See also the utility's help option. `monero-blockchain-stats --help`
8
9 From the command line run:
10
11 `$ monero-blockchain-stats`
12
13 This loads the existing blockchain and prints the results to the terminal. Default printed data includes Blocks per Day, Total Blocks, Transactions per Day, Total Transactions, Bytes per Day and Total Bytes. The format of the output is in tab delimited csv which is printed to the console. Redirecting or piping the output of the command allows for saving the output to a csv file or feeding your own script accordingly, i.e.:
14
15 - `monero-blockchain-stats > stats-$(date +'%Y-%m-%d').csv`
16 - `monero-blockchain-stats | save-to-database.sh`
17
18 ### Options
19 `--data-dir arg`
20 to specify location of blockchain storage
21
22 `--testnet`
23 Run on testnet.
24
25 `--stagenet`
26 Run on stagenet.
27
28 `--log-level arg`
29 0-4 or categories
30
31 `--block-start arg (=0)`
32 start at block number
33
34 `--block-stop arg (=0)`
35 Stop at block number
36
37 `--with-inputs`
38 with input stats
39
40 `--with-outputs`
41 with output stats
42
43 `--with-ringsize`
44 with ringsize stats
45
46 `--with-hours`
47 with txns per hour
48
49 `--with-emission`
50 with coin emission
51
52 `--with-fees`
53 with txn fees
54
55 `--with-diff`
56 with difficulty