From b941dec0a975d441fe08117e84d72aca4c5731bc Mon Sep 17 00:00:00 2001 From: brunoerg Date: Tue, 5 Apr 2022 14:39:00 -0300 Subject: [PATCH 1/2] docs: update `/rest/chaininfo` doc referring to RPC help --- doc/REST-interface.md | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/doc/REST-interface.md b/doc/REST-interface.md index 1f0a07a284..2bab19bb07 100644 --- a/doc/REST-interface.md +++ b/doc/REST-interface.md @@ -76,17 +76,7 @@ Given a height: returns hash of block in best-block-chain at height provided. Returns various state info regarding block chain processing. Only supports JSON as output format. -* chain : (string) current network name (main, test, signet, regtest) -* blocks : (numeric) the current number of blocks processed in the server -* headers : (numeric) the current number of headers we have validated -* bestblockhash : (string) the hash of the currently best block -* difficulty : (numeric) the current difficulty -* mediantime : (numeric) the median time of the 11 blocks before the most recent block on the blockchain -* verificationprogress : (numeric) estimate of verification progress [0..1] -* chainwork : (string) total amount of work in active chain, in hexadecimal -* pruned : (boolean) if the blocks are subject to pruning -* pruneheight : (numeric) highest block available -* softforks : (array) status of softforks in progress +Refer to the `getblockchaininfo` RPC help for details. #### Query UTXO set `GET /rest/getutxos//-/-/.../-.` From 1d95b5c78368575c8885a5bf659cdb4d6261f124 Mon Sep 17 00:00:00 2001 From: brunoerg Date: Mon, 18 Apr 2022 21:12:37 -0300 Subject: [PATCH 2/2] doc: cleanups to mempool rest endpoints --- doc/REST-interface.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/REST-interface.md b/doc/REST-interface.md index 2bab19bb07..aaef74080f 100644 --- a/doc/REST-interface.md +++ b/doc/REST-interface.md @@ -111,13 +111,13 @@ $ curl localhost:18332/rest/getutxos/checkmempool/b2cdfd7b89def827ff8af7cd9bff76 #### Memory pool `GET /rest/mempool/info.json` -Returns various information about the TX mempool. +Returns various information about the transaction mempool. Only supports JSON as output format. -Refer to the `getmempoolinfo` RPC for documentation of the fields. +Refer to the `getmempoolinfo` RPC help for details. `GET /rest/mempool/contents.json` -Returns transactions in the TX mempool. +Returns the transactions in the mempool. Only supports JSON as output format. Risks