[REST] add /rest/chaininfos #5548

pull jonasschnelli wants to merge 2 commits into bitcoin:master from jonasschnelli:2014_12_rest_getbestblock changing 3 files +51 −5
  1. jonasschnelli commented at 12:20 PM on December 27, 2014: contributor

    With this call is basically possible to create a little blockexplorer like web interface.

  2. jgarzik commented at 7:54 PM on December 27, 2014: contributor

    It seems more logical to have a /rest/chaininfo.json which returns a JSON object containing best block hash, and is expandable to more useful info in the future.

    Basically 'getblockchaininfo' exported via REST, in other words.

  3. jonasschnelli force-pushed on Dec 29, 2014
  4. jonasschnelli renamed this:
    [REST] add /rest/bestblock
    [REST] add /rest/chaininfos
    on Dec 29, 2014
  5. jonasschnelli force-pushed on Dec 29, 2014
  6. jonasschnelli force-pushed on Dec 29, 2014
  7. jonasschnelli force-pushed on Dec 29, 2014
  8. jonasschnelli commented at 8:41 AM on December 29, 2014: contributor

    ChainInfos makes more sense. Changes the PR to support getchaininfos.

  9. jonasschnelli force-pushed on Dec 29, 2014
  10. jgarzik commented at 3:32 PM on December 29, 2014: contributor

    Looks mostly OK at first glance. Only nit is including unrelated cleanups in the same commit.

  11. jgarzik commented at 3:58 PM on December 29, 2014: contributor

    Also, needs doc update.

  12. [REST] add /rest/chaininfos 59582c8b8d
  13. jonasschnelli force-pushed on Dec 29, 2014
  14. [REST] rest/chaininfos add documentation 2c0f901ea9
  15. jonasschnelli force-pushed on Dec 29, 2014
  16. jonasschnelli commented at 7:28 PM on December 29, 2014: contributor

    Okay. Fixed the smuggled cleanups. Added docs update.

  17. jgarzik commented at 7:32 PM on December 29, 2014: contributor

    ut ACK, though interested in comments from others.

  18. sipa commented at 1:00 AM on December 30, 2014: member

    Concept ACK.

  19. jgarzik commented at 1:54 PM on December 31, 2014: contributor

    tested ACK

  20. jgarzik added the label REST on Dec 31, 2014
  21. laanwj merged this on Feb 10, 2015
  22. laanwj closed this on Feb 10, 2015

  23. laanwj referenced this in commit d48ce48093 on Feb 10, 2015
  24. MarcoFalke locked this on Sep 8, 2021

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-24 12:15 UTC

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