Changeset View
Changeset View
Standalone View
Standalone View
doc/REST-interface.md
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
``` | ``` | ||||
#### Memory pool | #### Memory pool | ||||
`GET /rest/mempool/info.json` | `GET /rest/mempool/info.json` | ||||
Returns various information about the TX mempool. | Returns various information about the TX mempool. | ||||
Only supports JSON as output format. | Only supports JSON as output format. | ||||
* loaded : (boolean) if the mempool is fully loaded | |||||
* size : (numeric) the number of transactions in the TX mempool | * size : (numeric) the number of transactions in the TX mempool | ||||
* bytes : (numeric) size of the TX mempool in bytes | * bytes : (numeric) size of the TX mempool in bytes | ||||
* usage : (numeric) total TX mempool memory usage | * usage : (numeric) total TX mempool memory usage | ||||
`GET /rest/mempool/contents.json` | `GET /rest/mempool/contents.json` | ||||
Returns transactions in the TX mempool. | Returns transactions in the TX mempool. | ||||
Only supports JSON as output format. | Only supports JSON as output format. | ||||
Risks | 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. | 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. |