getSkippedBlocksByEpoch
Get the list of non-executed blocks in an epoch. By default, Conflux only executes the last 200 blocks in each epoch (note that under normal circumstances, epochs should be much smaller).
Usage
import { } from "./client";
const = await .();import { http, createPublicClient } from 'cive'
import { mainnet } from 'cive/chains'
export const publicClient = createPublicClient({
chain: mainnet,
transport: http(),
})Returns
Hash[]
The block hash array.
Parameters
epochTag (optional)
- Type:
latest_state|latest_confirmed|latest_checkpoint|earliest - Defaut:
latest_state
const blockHashes = await publicClient.getSkippedBlocksByEpoch({
epochTag: "latest_state",
});epochNumber (optional)
- Type:
bigint
const blockHashes = await publicClient.getSkippedBlocksByEpoch({
epochNumber: 1n,
});