Skip to main content
Plasma API method that returns all transaction receipts for a given block.

Parameters

  • quantity or tag — the block number in hex format or block tag (latest, earliest, pending, safe, finalized)

Response

  • array — an array of receipt objects for all transactions in the block

eth_getBlockReceipts code examples

const { JsonRpcProvider } = require("ethers");

const provider = new JsonRpcProvider("CHAINSTACK_NODE_URL");

async function call() {
  const result = await provider.send("eth_getBlockReceipts", [
    "latest"
  ]);
  console.log(result);
}

call();