mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-13 03:30:42 +02:00
doc: add info about status code 404 for some rest endpoints
This commit is contained in:
parent
31db3dd874
commit
0811cbfc28
@ -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`
|
||||
|
Loading…
Reference in New Issue
Block a user