Skip to content

savemempool JSON-RPC command

savemempool

Dumps the mempool to disk. It will fail until the previous dump is fully loaded.

Result

{
  "filename": "xxx"    (string) the directory and file where the mempool was saved
}

Examples

> bitcoin-cli savemempool
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "savemempool", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/

Bitcoin Cash Node Daemon version v29.1.1-3c2c3de

Documentation on docs.bitcoincashnode.org reflects the current master branch in Git, and may include API changes that are not yet present in the latest release.