doc: add info about status code 404 for some rest endpoints

This commit is contained in:
brunoerg committed 2022-01-24 08:39:42 -03:00
1 parent 31db3dd874
commit 0811cbfc28
1 file changed
+2
+2
View File
@@ -31,6 +31,7 @@ Supported API
`GET /rest/tx/<TX-HASH>.<bin|hex|json>`
Given a transaction hash: returns a transaction in binary, hex-encoded binary, or JSON formats.
Responds with 404 if the transaction doesn't exist.
By default, this endpoint will only search the mempool.
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.
`GET /rest/blockhashbyheight/<HEIGHT>.<bin|hex|json>`
Given a height: returns hash of block in best-block-chain at height provided.
Responds with 404 if block not found.
#### Chaininfos
`GET /rest/chaininfo.json`