savemempool

Input(s) 0

The savemempool RPC command is used to save the current state of the memory pool, which contains unconfirmed transactions, to disk.

How is this used?

The savemempool command is typically used by node operators and developers to ensure that unconfirmed transactions present in the mempool are not lost during system downtime. By saving the mempool to disk, users can preserve pending transactions and prevent them from being evicted when the node shuts down. This is particularly important for miners who rely on the mempool to include transactions in the blocks they mine. Additionally, developers may use this command when implementing custom mempool management strategies or conducting analysis on pending transactions.

Request

method

savemempool

Inputs

Result