daemon-rpc: get_version missing params

This commit is contained in:
plowsof 2024-09-30 00:08:41 +00:00 committed by nahuhh
parent 300135bda0
commit 0fba393c33

View file

@ -1407,6 +1407,10 @@ Inputs: _None_ .
Outputs: Outputs:
- _current_height_ - unsigned int; blockheight.
- _hard_forks_ - array of unsigned int.
- _height_ - unsigned int;
- _hf_version_ - unsigned int; hard fork version.
- _release_ - boolean; States if the daemon software version corresponds to an official tagged release (`true`), or not (`false`) - _release_ - boolean; States if the daemon software version corresponds to an official tagged release (`true`), or not (`false`)
- _status_ - string; General RPC error code. "OK" means everything looks good. - _status_ - string; General RPC error code. "OK" means everything looks good.
- _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`) - _untrusted_ - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (`true`), or when the daemon is fully synced and thus handles the RPC locally (`false`)
@ -1421,11 +1425,20 @@ $ curl http://127.0.0.1:18081/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"g
"id": "0", "id": "0",
"jsonrpc": "2.0", "jsonrpc": "2.0",
"result": { "result": {
"current_height": 3019446,
"hard_forks": [{
"height": 1,
"hf_version": 1
} ... {
"height": 2689608,
"hf_version": 16
}],
"release": true, "release": true,
"status": "OK", "status": "OK",
"untrusted": false, "untrusted": false,
"version": 196613 "version": 196613
} }
}
``` ```