---
name: savemempool
btcversion: 24.0.0
btcgroup: blockchain
permalink: en/doc/24.0.0/rpc/blockchain/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": "1.0", "id": "curltest", "method": "savemempool", "params": []}' -H 'cont