Language

Choose a language

/build/rpc / mining

getvalidationapiinfo

  • workflowoperate-a-verifier·step 1 of 6Workflow: operate-a-verifier · step 1 of 6

getvalidationapiinfo Get validation API connection information and status. Result: { (json object) "available" : true|false, (boolean) Whether validation API is available "active" : true|false, (boolean) Whether validation API is active "connection_healthy" : true|false, (boolean) Connection health status "mode" : "str", (string) Validation API mode: real, mock, or desktop "desktop_mode" : true|false, (boolean) Whether running in desktop mode (HTTPS validation) "request_push_endpoint" : "str", (string) Request push ZMQ endpoint "result_pull_endpoint" : "str", (string) Result pull ZMQ endpoint "request_delay_ms" : n, (numeric) Delay between validation requests (ms) "max_quick_attempts" : n, (numeric) Max attempts for quick validation "max_full_attempts" : n, (numeric) Max attempts for full validation "max_model_attempts" : n (numeric) Max attempts for model validation } Examples: > bitcoin-cli getvalidationapiinfo > curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "getvalidationapiinfo", "params": []}' -H 'content-type: application/json' http://127.0.0.1:8332/

Signature

getvalidationapiinfo() → any

Code samples

curl --user "$RPC_USER:$RPC_PASS" \
  --data-binary '{"jsonrpc":"1.0","id":"docs","method":"getvalidationapiinfo","params":[]}' \
  -H 'content-type: text/plain;' \
  http://127.0.0.1:8332/

Parameters

No parameters.

Result

Type:  any

{ (json object) "available" : true|false, (boolean) Whether validation API is available "active" : true|false, (boolean) Whether validation API is active "connection_healthy" : true|false, (boolean) Connection health status "mode" : "str", (string) Validation API mode: real, mock, or desktop "desktop_mode" : true|false, (boolean) Whether running in desktop mode (HTTPS validation) "request_push_endpoint" : "str", (string) Request push ZMQ endpoint "result_pull_endpoint" : "str", (string) Result pull ZMQ endpoint "request_delay_ms" : n, (numeric) Delay between validation requests (ms) "max_quick_attempts" : n, (numeric) Max attempts for quick validation "max_full_attempts" : n, (numeric) Max attempts for full validation "max_model_attempts" : n (numeric) Max attempts for model validation }

Source: services/core-node/bcore/src/rpc/custom.cpp:627

C++ symbol: getvalidationapiinfo