getrpcinfo should provide version number #24978

issue doc-hex opened this issue on April 25, 2022
  1. doc-hex commented at 3:04 PM on April 25, 2022: none

    Is your feature request related to a problem? Please describe.

    RPC details change, like fields in responses & I want to write robust code that can handle that.

    Describe the solution you'd like getrpcinfo or a new RPC call should provide the version of the client as a string such as "22.0" or similar.

    Describe alternatives you've considered Would need to fingerprint a few responses and apply heuristics to determine what we are talking to otherwise.

  2. doc-hex added the label Feature on Apr 25, 2022
  3. achow101 commented at 3:14 PM on April 25, 2022: member

    getnetworkinfo has this information (for some reason).

  4. doc-hex commented at 3:21 PM on April 25, 2022: none

    yes that is workable, thanks!

  5. doc-hex closed this on Apr 25, 2022

  6. jonatack commented at 3:23 PM on April 25, 2022: member

    (Also -version, -getinfo, and -netinfo, but these are CLI commands, don't return JSON, and are not subject to API constraints. For a software client, getnetworkinfo as @achow101 mentioned is the best choice.)

  7. DrahtBot locked this on Apr 25, 2023
Labels

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 18:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me