diff options
| author | Jonas Schnelli <[email protected]> | 2019-01-22 19:58:43 -1000 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2019-01-22 19:59:02 -1000 |
| commit | 82cf6813a4ef1b4a5439eb6cddb1ab426f3c31a2 (patch) | |
| tree | ba2fdc8d1b261d777e19c496bc4059f03cb3be43 /doc/REST-interface.md | |
| parent | Merge #15208: Qt: remove macOS launch-at-startup when compiled with > macOS 1... (diff) | |
| parent | [Docs] add short documentation for /rest/blockhashbyheight (diff) | |
| download | discoin-82cf6813a4ef1b4a5439eb6cddb1ab426f3c31a2.tar.xz discoin-82cf6813a4ef1b4a5439eb6cddb1ab426f3c31a2.zip | |
Merge #14353: REST: add blockhash call, fetch blockhash by height
42ff30ec6 [Docs] add short documentation for /rest/blockhashbyheight (Jonas Schnelli)
579d418f7 [QA] add rest tests for /rest/blockhashbyheight/<HEIGHT>.<FORMAT> (Jonas Schnelli)
eb9ef04c4 REST: add "blockhashbyheight" call, fetch blockhash by height (Jonas Schnelli)
Pull request description:
Completes the REST interface for trivial block exploring by adding a call that allows to fetch the blockhash in the main chain by a given height.
Tree-SHA512: 94be9e56718f857279b11cc16dfa8d04f3b5a762e87ae54281b4d87247c71c844895f4944d5a47f09056bf851f4c4761ac4fbdbaaee957265d14de5c1c73e8d2
Diffstat (limited to 'doc/REST-interface.md')
| -rw-r--r-- | doc/REST-interface.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/REST-interface.md b/doc/REST-interface.md index ff7ef6ce1..d21df3613 100644 --- a/doc/REST-interface.md +++ b/doc/REST-interface.md @@ -39,6 +39,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. Returns empty if the block doesn't exist or it isn't in the active chain. +#### 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` |