Skip to content
Cive

getConfirmationRiskByHash

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

Usage

import {  } from "./client";
const  = await .({
  : "0x...",
});

Returns

bigint or undefined

The integer confirmation risk, or undefined if the block does not exist.

Parameters

blockHash

  • Type: Hash
const confirmationRisk = await publicClient.getConfirmationRiskByHash({
  blockHash: "0x...",
});

JSON-RPC Method

cfx_getConfirmationRiskByHash