getConfirmationRiskByHash
Get the confirmation risk of a given block, identified by its hash.
Usage
import { } from "./client";
const = await .({
: "0x...",
});import { http, createPublicClient } from 'cive'
import { mainnet } from 'cive/chains'
export const publicClient = createPublicClient({
chain: mainnet,
transport: http(),
})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...",
});