API Reference

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 }
Path Params
string
required
Body Params
string
Defaults to 2.0
string
Defaults to cfx_getConfirmationRiskByHash
params
array of strings
params
int32
Defaults to 0
Responses

Language
URL
Click Try It! to start a request and see the response here! Or choose an example:
application/json