RPC Browser

Arguments


Help Content

preciousblock "blockhash"

Treats a block as if it were received before others with the same work.

A later preciousblock call can override the effect of an earlier one.

The effects of preciousblock are not retained across restarts.

Arguments:
1. blockhash    (string, required) the hash of the block to mark as precious

Result:
null    (json null)

Examples:
> bitcoinII-cli preciousblock "blockhash"
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "preciousblock", "params": ["blockhash"]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/

blockhash

{
    "name": "blockhash",
    "detailsLines": [],
    "properties": [
        "string",
        "required"
    ],
    "description": "the hash of the block to mark as precious"
}

Favorites (1)

Recent (1)

Blockchain (33)

Control (6)

Mining (7)

Network (14)

Rawtransactions (19)

Signer (1)

Util (8)

Wallet (66)

Zmq (1)