getrecentvalidations
- workflowoperate-a-verifier·step 3 of 6Workflow: operate-a-verifier · step 3 of 6
getrecentvalidations ( count ) Get recent validation records for display. Arguments: 1. count (numeric, optional, default=20) Maximum number of records to return Result: [ (json array) { (json object) "block_hash" : "hex", (string) Block hash "type" : "str", (string) Validation type (quick or full) "quick_status" : "str", (string) Quick validation status "smell_status" : "str", (string) Smell validation status "full_status" : "str", (string) Full validation status "timestamp" : n (numeric) Unix timestamp }, ... ] Examples: > bitcoin-cli getrecentvalidations > bitcoin-cli getrecentvalidations 10 > curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "getrecentvalidations", "params": [20]}' -H 'content-type: application/json' http://127.0.0.1:8332/
Signature
getrecentvalidations(count?: number) → any Code samples
curl --user "$RPC_USER:$RPC_PASS" \
--data-binary '{"jsonrpc":"1.0","id":"docs","method":"getrecentvalidations","params":[20]}' \
-H 'content-type: text/plain;' \
http://127.0.0.1:8332/ Parameters
| Name | Type | Req. | Description |
|---|---|---|---|
| count | number | — | Maximum number of records to return |
Result
Type: any
[ (json array) { (json object) "block_hash" : "hex", (string) Block hash "type" : "str", (string) Validation type (quick or full) "quick_status" : "str", (string) Quick validation status "smell_status" : "str", (string) Smell validation status "full_status" : "str", (string) Full validation status "timestamp" : n (numeric) Unix timestamp }, ... ]
Source: services/core-node/bcore/src/rpc/custom.cpp:491
C++ symbol: getrecentvalidations