Skip to content

invalidateblock JSON-RPC command

invalidateblock "blockhash"

Permanently marks a block as invalid, as if it violated a consensus rule.


1. "blockhash"    (string, required) the hash of the block to mark as invalid



> bitcoin-cli invalidateblock "blockhash"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "invalidateblock", "params": ["blockhash"] }' -H 'content-type: text/plain;'

Bitcoin Cash Node Daemon version v27.0.1-6ebcb9e

Documentation on reflects the current master branch in Git, and may include API changes that are not yet present in the latest release.