savemempool
savemempool Dumps the mempool to disk. It will fail until the previous dump is fully loaded. Result: { (json object) "filename" : "str" (string) the directory and file where the mempool was saved } Examples: > bitcoin-cli savemempool > curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "savemempool", "params": []}' -H 'content-type: application/json' http://127.0.0.1:8332/
Signature
savemempool() → any Code samples
curl --user "$RPC_USER:$RPC_PASS" \
--data-binary '{"jsonrpc":"1.0","id":"docs","method":"savemempool","params":[]}' \
-H 'content-type: text/plain;' \
http://127.0.0.1:8332/ Parameters
No parameters.
Result
Type: any
{ (json object) "filename" : "str" (string) the directory and file where the mempool was saved }
Source: services/core-node/bcore/src/rpc/mempool.cpp:783
C++ symbol: savemempool