bitcoind.app
CommandsGuidesContact ↗
Home/Blockchain/pruneblockchain
Blockchain

pruneblockchain

Prune blockchain up to specified height or unix timestamp.

Parameters

heightnumberREQUIRED
Block height to prune up to, or unix timestamp

Returns

numberHeight of the last block pruned

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"pruneblockchain","params":[800000]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

799999
← Previous
preciousblock
Next →
savemempool

More Blockchain Commands

getbestblockhashgetblockgetblockchaininfogetblockcountgetblockfiltergetblockhash

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗