Log In

cfx_getConfirmationRiskByHash - Conflux

Returns the confirmation risk of a given block, identified by its hash.

Parameters

  • DATA, 32 Bytes - The block hash.

Returns

QUANTITY, the integer confirmation risk, or null if the block does not exist.


Example

Request

curl -X POST \
--data '{"jsonrpc":"2.0","method": "cfx_getConfirmationRiskByHash",
    "params": [
  "0x3912275cf09f8982a69735a876c14584dae95078762090c5d32fdf0dbec0647c"
],"id":1}' \
-H "Content-Type: application/json" \
https://cfx-core.unifra.io/v1/ad2eb3c7a9404cc6a35a6641eaf70577 


Result

{
    "jsonrpc": "2.0",
    "result": "0x2af31dc4611873bf3f70834acdae9f0f4f534f5d60585a5f1c1a3ced1b",
    "id": 0
}
Language
Click Try It! to start a request and see the response here!