aboutsummaryrefslogtreecommitdiff
path: root/doc/REST-interface.md
diff options
context:
space:
mode:
authorJonas Schnelli <[email protected]>2018-09-29 21:45:43 +0200
committerJonas Schnelli <[email protected]>2019-01-21 11:54:54 -1000
commit42ff30ec60c6ab6a9555da57a435b09cf217ee84 (patch)
tree3a93ce5d199686245071f0e389d978f24c8a94e8 /doc/REST-interface.md
parent[QA] add rest tests for /rest/blockhashbyheight/<HEIGHT>.<FORMAT> (diff)
downloaddiscoin-42ff30ec60c6ab6a9555da57a435b09cf217ee84.tar.xz
discoin-42ff30ec60c6ab6a9555da57a435b09cf217ee84.zip
[Docs] add short documentation for /rest/blockhashbyheight
Diffstat (limited to 'doc/REST-interface.md')
-rw-r--r--doc/REST-interface.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/REST-interface.md b/doc/REST-interface.md
index 7010edfcd..d33165cb8 100644
--- a/doc/REST-interface.md
+++ b/doc/REST-interface.md
@@ -31,6 +31,11 @@ With the /notxdetails/ option JSON response will only contain the transaction ha
Given a block hash: returns <COUNT> amount of blockheaders in upward direction.
+#### Blockhash by height
+`GET /rest/blockhashbyheight/<HEIGHT>.<bin|hex|json>`
+
+Given a height: returns hash of block in best-block-chain at height provided.
+
#### Chaininfos
`GET /rest/chaininfo.json`