mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
doc: add info about status code 404 for some rest endpoints
This commit is contained in:
parent
31db3dd874
commit
0811cbfc28
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue