Skip to content

getEpochReceipts

Get all transaction receipts within the specific epoch.

Usage

example.ts
import { publicClient } from "./client";
 
const receipts = await publicClient.getEpochReceipts();

Returns

TransactionReceipt[]

Parameters

includeTxReceipts (optional)

  • Type: boolean
  • Defaut: false
const receipts = await publicClient.getEpochReceipts({
  includeTxReceipts: false, 
});

epochTag (optional)

  • Type: latest_state| latest_confirmed| latest_checkpoint | earliest
  • Defaut: latest_state
const receipts = await publicClient.getEpochReceipts({
  epochTag: "latest_state", 
});

epochNumber (optional)

  • Type: bigint
const receipts = await publicClient.getEpochReceipts({
  epochNumber: 1n, 
});

JSON-RPC Method

cfx_getEpochReceipts