Transactions statistics.
Time format is <Year>-<Month>-<Day>_<Hours>:<Minutes>:<seconds> or just <seconds>
CLI Example
Command syntax:
net stats tx
-net <chain_net_name>
[-from <from_time>] [-to <to_time>]
[-prev_day <days>]
Options:
-net - name of the Cellframe Network. The list of networks can be found in the <Config_dir> \ etc \ network folder or received by The Cellframe-Node-CLI using command - net list
***
-from,-to - time frame needed (optional)
-prev_day - shows tx statistics only for specified previous days (optional)
Example:
Command:
cellframe-node-cli net stats tx
-net Backbone
-from 2023-01-01_00:00
-to 2024-01-01_00:00
Response:
transaction_statistics:
from: 2023-01-01_00:00
to: 2024-01-01_00:00
transaction_per_day: 69.214
total: 25263
JSON-RPC Example
Command:
curl --unix-socket /opt/cellframe-node/var/run/node_cli
-X POST http://localhost/connect
-d '{"method":"net", "params":["net;-net;Backbone;stats;tx;-from;2023-01-01_00:00;-to;2024-01-01_00:00"], "id":"1"}'
Response:
{
"type": 2,
"result": [
{
"transaction_statistics": {
"from": "2023-01-01_00:00",
"to": "2024-01-01_00:00",
"transaction_per_day": "69.214",
"total": 25263
}
}
],
"errors": null,
"id": 1
}