bitcoind.app
CommandsGuidesContact ↗
Home/Blockchain/preciousblock
Blockchain

preciousblock

Treats a block as if it were received before others with the same work. Cannot be used to undo a previous call.

Parameters

blockhashstringREQUIRED
The hash of the block to mark as precious

Returns

nullReturns null on success

Code Examples

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

Example Response

null
← Previous
gettxoutsetinfo
Next →
pruneblockchain

More Blockchain Commands

getbestblockhashgetblockgetblockchaininfogetblockcountgetblockfiltergetblockhash

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗