From 95b2a04937283b8aa54a0ff2db6a2567638ef794 Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Fri, 22 Apr 2016 15:26:20 -0400 Subject: [PATCH] docs: add rawblock endpoint to docs --- README.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 60e2855..89e6538 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ There is a new `GET` endpoint or raw blocks at `/rawblock/`, where `bl Response format: ``` { - "rawblock": "blockhexstring.." + "rawblock": "blockhexstring..." } ``` @@ -98,10 +98,26 @@ Get block hash by height ``` This would return: ``` -{"blockHash":"000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f"} +{ + "blockHash":"000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f" +} ``` which is the hash of the Genesis block (0 height) + +### Raw Block +``` + /insight-api/rawblock/[:blockHash] + /insight-api/rawblock/[:blockHeight] +``` + +This would return: +``` +{ + "rawblock":"blockhexstring..." +} +``` + ### Transaction ``` /insight-api/tx/[:txid]