With this call is basically possible to create a little blockexplorer like web interface.
[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-
jonasschnelli commented at 12:20 PM on December 27, 2014: contributor
-
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.
- jonasschnelli force-pushed on Dec 29, 2014
- jonasschnelli renamed this:
[REST] add /rest/bestblock
[REST] add /rest/chaininfos
on Dec 29, 2014 - jonasschnelli force-pushed on Dec 29, 2014
- jonasschnelli force-pushed on Dec 29, 2014
- jonasschnelli force-pushed on Dec 29, 2014
-
jonasschnelli commented at 8:41 AM on December 29, 2014: contributor
ChainInfos makes more sense. Changes the PR to support getchaininfos.
- jonasschnelli force-pushed on Dec 29, 2014
-
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.
-
jgarzik commented at 3:58 PM on December 29, 2014: contributor
Also, needs doc update.
-
[REST] add /rest/chaininfos 59582c8b8d
- jonasschnelli force-pushed on Dec 29, 2014
-
[REST] rest/chaininfos add documentation 2c0f901ea9
- jonasschnelli force-pushed on Dec 29, 2014
-
jonasschnelli commented at 7:28 PM on December 29, 2014: contributor
Okay. Fixed the smuggled cleanups. Added docs update.
-
jgarzik commented at 7:32 PM on December 29, 2014: contributor
ut ACK, though interested in comments from others.
-
sipa commented at 1:00 AM on December 30, 2014: member
Concept ACK.
-
jgarzik commented at 1:54 PM on December 31, 2014: contributor
tested ACK
- jgarzik added the label REST on Dec 31, 2014
- laanwj merged this on Feb 10, 2015
- laanwj closed this on Feb 10, 2015
- laanwj referenced this in commit d48ce48093 on Feb 10, 2015
- MarcoFalke locked this on Sep 8, 2021
Contributors