pruneblockchain

Input(s) 1

The pruneblockchain RPC allows the user to prune the blockchain, reducing the disk space required to store the full blockchain data.

How is this used?

The pruneblockchain RPC is primarily used to reduce the disk space requirements of running a full node by removing old blockchain data that is no longer needed for validation or consensus. This is particularly useful for nodes with limited storage capacity or those running on devices with constrained resources. By periodically pruning the blockchain, users can ensure that their node remains functional while minimizing storage overhead. Additionally, pruning can help improve synchronization times for new nodes joining the network by reducing the amount of data that needs to be downloaded and validated.

Request

method

pruneblockchain

height

Optional

Inputs(1)

height The block height to prune up to. May be set to a discrete height, or to a UNIX epoch time

Result