getorphanmetrics
New since v30.2
Summary
Return stale block metrics over a rolling event window.
Description
Return stale block metrics over a rolling event window. Note: "orphan" here means stale blocks, not orphan transactions.
Change Buckets
- New since v30.2
Arguments
window(NUM): Rolling window size in events (1-10000)
Results
value(OBJ): No description.window_blocks(NUM): requested window sizewindow_total(NUM): total events available within the windowwindow_stale(NUM): stale block events within the windoworphan_rate(NUM): window_stale/window_total (0 if window_total is 0)lifetime_blocks_connected(NUM): lifetime count of connected blocks observedlifetime_stale_blocks(NUM): lifetime count of stale blocks observedlifetime_reorgs(NUM): lifetime count of reorganizations observeddeepest_reorg(NUM): maximum observed reorganization depthlast_stale_height(NUM): height of most recent stale block, or -1 if nonelast_stale_time(NUM_TIME): timestamp of most recent stale block (unix epoch), or 0 if nonepersistent_stale_tip_count(NUM): count of non-active chain tips known in block indexalert(BOOL): true if stale rate is above the alert threshold
Examples
qbit-cli getorphanmetrics
qbit-cli getorphanmetrics 500
curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "getorphanmetrics", "params": [500]}' -H 'content-type: application/json' http://127.0.0.1:8352/