Skip to content

Commit 0811cbf

Browse files
committed
doc: add info about status code 404 for some rest endpoints
1 parent 31db3dd commit 0811cbf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/REST-interface.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Supported API
3131
`GET /rest/tx/<TX-HASH>.<bin|hex|json>`
3232

3333
Given a transaction hash: returns a transaction in binary, hex-encoded binary, or JSON formats.
34+
Responds with 404 if the transaction doesn't exist.
3435

3536
By default, this endpoint will only search the mempool.
3637
To query for a confirmed transaction, enable the transaction index via "txindex=1" command line / configuration option.
@@ -70,6 +71,7 @@ Responds with 404 if the block doesn't exist.
7071
`GET /rest/blockhashbyheight/<HEIGHT>.<bin|hex|json>`
7172

7273
Given a height: returns hash of block in best-block-chain at height provided.
74+
Responds with 404 if block not found.
7375

7476
#### Chaininfos
7577
`GET /rest/chaininfo.json`

0 commit comments

Comments
 (0)