curl --request POST \
--url https://nd-202-842-353.p2pify.com/788f110831fe13808302bd79796d55e8 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "1.0",
"method": "preciousblock",
"params": "000000000000000000011cefb2db6b82b6ae69b4ec06eedc81fc85d16f97865d",
"id": 1
}'
{
"result": "<string>",
"error": {},
"id": 123
}
curl --request POST \
--url https://nd-202-842-353.p2pify.com/788f110831fe13808302bd79796d55e8 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "1.0",
"method": "preciousblock",
"params": "000000000000000000011cefb2db6b82b6ae69b4ec06eedc81fc85d16f97865d",
"id": 1
}'
{
"result": "<string>",
"error": {},
"id": 123
}
preciousblock
method allows a node to mark a specific block as “precious,” meaning the block is treated as if it were received earlier than other blocks with the same amount of work. This can influence the node’s choice of the active chain, potentially causing a reorganization to prefer the chain that includes the precious block.
block hash
(required): The hash of the block to be marked as precious.result
— always null
, indicating that the block has been successfully marked as precious.error
— an object containing an error message if an error occurred, otherwise null
.id
— an integer representing the ID of the request.preciousblock
method is useful in scenarios where a blockchain network participant wants to influence the chain selection process in favor of a particular branch that includes the specified block. This can be relevant in testing, or in situations where network conditions lead to competing chains.Acknowledgement that the block has been marked as precious
The response is of type object
.
Was this page helpful?