getminingmetrics
- workflowrun-a-miner·step 6 of 6Workflow: run-a-miner · step 6 of 6
getminingmetrics Get mining API metrics and statistics. Result: { (json object) "solutions_received" : n, (numeric) Total raw solution responses received from the mining API "solutions_usable" : n, (numeric) Total usable mining solutions decoded from the mining API "solutions_invalid" : n, (numeric) Total invalid mining responses rejected before submission "solutions_duplicates" : n, (numeric) Total late duplicate mining responses ignored after a solution was already submitted "usable_rate" : n, (numeric) Usable response rate percentage "solutions_accepted" : n, (numeric) Compatibility alias for solutions_usable "solutions_rejected" : n, (numeric) Compatibility alias for solutions_invalid "acceptance_rate" : n, (numeric) Compatibility alias for usable_rate "rate_limited" : n, (numeric) Number of rate-limited requests "network_errors" : n, (numeric) Number of network errors "last_solution_time" : n (numeric) Unix timestamp of last solution } Examples: > bitcoin-cli getminingmetrics > curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "getminingmetrics", "params": []}' -H 'content-type: application/json' http://127.0.0.1:8332/
Signature
getminingmetrics() → any Code samples
curl --user "$RPC_USER:$RPC_PASS" \
--data-binary '{"jsonrpc":"1.0","id":"docs","method":"getminingmetrics","params":[]}' \
-H 'content-type: text/plain;' \
http://127.0.0.1:8332/ Parameters
No parameters.
Result
Type: any
{ (json object) "solutions_received" : n, (numeric) Total raw solution responses received from the mining API "solutions_usable" : n, (numeric) Total usable mining solutions decoded from the mining API "solutions_invalid" : n, (numeric) Total invalid mining responses rejected before submission "solutions_duplicates" : n, (numeric) Total late duplicate mining responses ignored after a solution was already submitted "usable_rate" : n, (numeric) Usable response rate percentage "solutions_accepted" : n, (numeric) Compatibility alias for solutions_usable "solutions_rejected" : n, (numeric) Compatibility alias for solutions_invalid "acceptance_rate" : n, (numeric) Compatibility alias for usable_rate "rate_limited" : n, (numeric) Number of rate-limited requests "network_errors" : n, (numeric) Number of network errors "last_solution_time" : n (numeric) Unix timestamp of last solution }
Source: services/core-node/bcore/src/rpc/custom.cpp:377
C++ symbol: getminingmetrics