bitcoind.app
CommandsGuidesContact ↗
Home/Blockchain/verifychain
Blockchain

verifychain

Verifies blockchain database.

Parameters

checklevelnumberoptional
How thorough (0-4). Default: 3
nblocksnumberoptional
Number of blocks to check. Default: 6, 0=all

Returns

booleanWhether verification passed

Code Examples

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

Example Response

true
← Previous
savemempool
Next →
verifytxoutproof

More Blockchain Commands

getbestblockhashgetblockgetblockchaininfogetblockcountgetblockfiltergetblockhash

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗