mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-15 12:40:41 +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>`
|
`GET /rest/tx/<TX-HASH>.<bin|hex|json>`
|
||||||
|
|
||||||
Given a transaction hash: returns a transaction in binary, hex-encoded binary, or JSON formats.
|
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.
|
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.
|
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>`
|
`GET /rest/blockhashbyheight/<HEIGHT>.<bin|hex|json>`
|
||||||
|
|
||||||
Given a height: returns hash of block in best-block-chain at height provided.
|
Given a height: returns hash of block in best-block-chain at height provided.
|
||||||
|
Responds with 404 if block not found.
|
||||||
|
|
||||||
#### Chaininfos
|
#### Chaininfos
|
||||||
`GET /rest/chaininfo.json`
|
`GET /rest/chaininfo.json`
|
||||||
|
Loading…
Reference in New Issue
Block a user