eth_getBlockReceipts RPC Method

Fetches all transaction receipts contained in a specific block.

Parameters#

stringrequired

Block tag (latest, safe, finalized, pending) or 32-byte block hash.

Result#

array | null - A list of receipt objects for every transaction in the block.

Code sample#

{
  "jsonrpc": "2.0",
  "method": "eth_getBlockReceipts",
  "params": [
    "latest"
  ],
  "id": 1
}

Response#

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": []
}
Try It