Stats
nodeIPStats
Get communication statistics for connected nodes.
Params
- ip : String - Request IP
Result
- Returns a JSON Array with network communication statistics for request IP
Example
Request
curl -X POST --data '{"jsonrpc":"2.0","method":"nodeIPStats","params":{"ip":"199.*.*.1"},"id":123456}' http://localhost:8121
Response
{"result":[{"ip":"199.*.*.1","values":{"optype":{"HELLO":{},"NEW_BLOCK_FAST":{"Autosend":{"count":8,"datasize":3488,"last":[{"updated_ts":1659322220,"datasize":436},{"updated_ts":1659322221,"datasize":436},{"updated_ts":1659322222,"datasize":436},{"updated_ts":1659322223,"datasize":436},{"updated_ts":1659322224,"datasize":436},{"updated_ts":1659322225,"datasize":436},{"updated_ts":1659322226,"datasize":436},{"updated_ts":1659322227,"datasize":436}]}}},"stats":{"updated_ts":1659322227}}}],"id":"123456","jsonrpc":"2.0"}
rpcCallStats
Get call statistics by RPC function.
Params
- none
Result
- Returns a JSON Object with Wallet Address
Example
Request
curl -X POST --data '{"jsonrpc":"2.0","method":"rpcCallStats","id":123456}' http://localhost:8121
Response
{"result":[{"method":"getBlockCount","calls":6,"seconds":"0.016","secs_average":"0.003"},{"method":"getBlockInfo","calls":4,"seconds":"0.032","secs_average":"0.008"},{"method":"rpcCallStats","calls":1,"seconds":"0.000","secs_average":"0.000"},{"method":"TOTAL","calls":11,"seconds":"0.048","secs_average":"0.004"}],"id":"123456","jsonrpc":"2.0"}
nodeUptime
Returns the total uptime of the server.
Params
- none
Result
- Returns a JSON Object with the number of seconds that the server has been running
Example
Request
curl -X POST --data '{"jsonrpc":"2.0","method":"nodeUptime","id":123456}' http://localhost:8121
Response
{"result":154197,"id":"123456","jsonrpc":"2.0"}