eth_getBlockReceipts - Ethereum

Get all transaction receipts for a given block on Ethereum.

Parameters

String - One of the following options:

  1. block hash
  2. block number (in hex)
  3. block tag (one of the following):
  • pending - A sample next block built by the client on top of latest and containing the set of transactions usually taken from local mempool. Intuitively, you can think of these as blocks that have not been mined yet.
  • latest - The most recent block in the canonical chain observed by the client, this block may be re-orged out of the canonical chain even under healthy/normal conditions.
  • safe - The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination. Intuitively, this block is “unlikely” to be re-orged. Only available on Ethereum Mainnet and Goerli.
  • finalized - The most recent crypto-economically secure block, that has been accepted by >2/3 of validators. Cannot be re-orged outside of manual intervention driven by community coordination. Intuitively, this block is very unlikely to be re-orged. Only available on Ethereum Mainnet and Goerli.
  • earliest - The lowest numbered block the client has available. Intuitively, you can think of this as the first block created.
params: [
	"latest",
];

Returns

  • blockHash
  • blockNumber
  • contractAddress
  • cumulativeGasUsed
  • effectiveGasPrice
  • from
  • gasUsed
  • logs
  • logsBloom
  • status
  • to
  • transactionHash
  • transactionIndex
  • type

Example

Request

curl https://eth-mainnet.unifra.io/v1/your-api-key \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getBlockReceipts","params":["latest"],"id":0}'
URL: https://eth-mainnet.unifra.io/v1/your-api-key
RequestType: POST
Body:
{
    "jsonrpc":"2.0",
    "method":"eth_getBlockTransactionCountByHash",
    "params":["0x8243343df08b9751f5ca0c5f8c9c0460d8a9b6351066fae0acbd4d3e776de8bb"],
    "id":0
}

Result

{
  "jsonrpc": "2.0",
  "id": 0,
  "result": [
    {
      "blockHash": "0x73369748ee4751922ac6fa1478c8db4a9c9221a2d75ae81db06f8c69f630fdfc",
      "blockNumber": "0xf3a467",
      "contractAddress": null,
      "cumulativeGasUsed": "0xca76",
      "effectiveGasPrice": "0x10ff239a00",
      "from": "0x36014fbe13fed6dbb2e24b85c0c2fa9d6b7863a4",
      "gasUsed": "0xca76",
      "logs": [
        {
          "address": "0x6b175474e89094c44da98b954eedeac495271d0f",
          "topics": [
            "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
            "0x00000000000000000000000036014fbe13fed6dbb2e24b85c0c2fa9d6b7863a4",
            "0x00000000000000000000000036956cc0cf98b75a238fdf8ae413abf3063cf5df"
          ],
          "data": "0x00000000000000000000000000000000000000000000043b6396deee95a40000",
          "blockNumber": "0xf3a467",
          "transactionHash": "0x664f5761d156e283df1f9d325abd46ca4677845950c291f546519bd087e020a3",
          "transactionIndex": "0x0",
          "blockHash": "0x73369748ee4751922ac6fa1478c8db4a9c9221a2d75ae81db06f8c69f630fdfc",
          "logIndex": "0x0",
          "removed": false
        }
      ],
      "logsBloom": "0x00000000000000000800000000000000000000000000000000000000000000000100000000000000000010000000000000000000000000000000000000000000000000000000000000040008000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000010000000000000000000000000000000000008000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
      "status": "0x1",
      "to": "0x6b175474e89094c44da98b954eedeac495271d0f",
      "transactionHash": "0x664f5761d156e283df1f9d325abd46ca4677845950c291f546519bd087e020a3",
      "transactionIndex": "0x0",
      "type": "0x0"
    }
    ...
  ]
}
Language
Click Try It! to start a request and see the response here!