diff options
| author | Jeff Garzik <[email protected]> | 2015-08-15 16:09:06 -0400 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2015-08-15 16:09:06 -0400 |
| commit | 6feeec1ec5fbadc5c77d1bbf6511d021e8fc73d1 (patch) | |
| tree | 558602b33381fadbb911643a38fffabc308f7c97 /doc | |
| parent | Merge pull request #6415 (diff) | |
| parent | Implement REST mempool API, add test and documentation. (diff) | |
| download | discoin-6feeec1ec5fbadc5c77d1bbf6511d021e8fc73d1.tar.xz discoin-6feeec1ec5fbadc5c77d1bbf6511d021e8fc73d1.zip | |
Merge pull request #6013
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/REST-interface.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/REST-interface.md b/doc/REST-interface.md index ac7cd45f7..bf669235e 100644 --- a/doc/REST-interface.md +++ b/doc/REST-interface.md @@ -77,6 +77,20 @@ $ curl localhost:18332/rest/getutxos/checkmempool/b2cdfd7b89def827ff8af7cd9bff76 } ``` +####Memory pool +`GET /rest/mempool/info.json` + +Returns various information about the TX mempool. +Only supports JSON as output format. +* size : (numeric) the number of transactions in the TX mempool +* bytes : (numeric) size of the TX mempool in bytes +* usage : (numeric) total TX mempool memory usage + +`GET /rest/mempool/contents.json` + +Returns transactions in the TX mempool. +Only supports JSON as output format. + Risks ------------- Running a web browser on the same node with a REST enabled bitcoind can be a risk. Accessing prepared XSS websites could read out tx/block data of your node by placing links like `<script src="http://127.0.0.1:8332/rest/tx/1234567890.json">` which might break the nodes privacy. |