Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

devguides: daemon rpc get_version missing params #2265

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 13 additions & 0 deletions resources/developer-guides/daemon-rpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -1207,6 +1207,10 @@ Inputs: *None*.

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`)
* *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`)
Expand All @@ -1221,11 +1225,20 @@ $ curl http://127.0.0.1:18081/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"g
"id": "0",
"jsonrpc": "2.0",
"result": {
"current_height": 3019446,
"hard_forks": [{
"height": 1,
"hf_version": 1
} ... {
"height": 2689608,
"hf_version": 16
}],
"release": true,
"status": "OK",
"untrusted": false,
"version": 196613
}
}
```


Expand Down