> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# eth_getBlockReceipts | Arc

> Arc API method that returns all transaction receipts for a given block. Reference for eth_getBlockReceipts on Arc via Chainstack.

Arc API method that returns all transaction receipts for a given block. This is more efficient than fetching receipts individually when you need all receipts from a block.

## Parameters

* `blockParameter` — the block number (hex) or tag (`latest`, `earliest`, `pending`)

## Response

* `result` — array of receipt objects for all transactions in the block:
  * `transactionHash` — hash of the transaction
  * `transactionIndex` — index of the transaction in the block
  * `blockHash` — hash of the block
  * `blockNumber` — block number
  * `from` — sender address
  * `to` — recipient address
  * `cumulativeGasUsed` — total gas used in the block up to this transaction
  * `gasUsed` — gas used by this transaction
  * `contractAddress` — contract address if this was a deployment
  * `logs` — array of log objects
  * `logsBloom` — bloom filter for logs
  * `status` — `0x1` for success, `0x0` for failure
  * `effectiveGasPrice` — actual gas price paid
  * `type` — transaction type
  * `feeToken` — (Arc-specific) token used to pay fees
  * `feePayer` — (Arc-specific) address that paid the fees

## `eth_getBlockReceipts` code examples

<CodeGroup>
  ```javascript ethers.js theme={"system"}
  const ethers = require('ethers');
  const NODE_URL = "CHAINSTACK_NODE_URL";
  const provider = new ethers.JsonRpcProvider(NODE_URL);

  const getBlockReceipts = async (blockNumber) => {
      const receipts = await provider.send("eth_getBlockReceipts", [blockNumber]);

      console.log(`Block ${blockNumber}: ${receipts.length} transactions`);

      let totalGasUsed = 0n;
      let successCount = 0;
      let failCount = 0;

      for (const receipt of receipts) {
        const gasUsed = BigInt(receipt.gasUsed);
        totalGasUsed += gasUsed;

        if (receipt.status === "0x1") {
          successCount++;
        } else {
          failCount++;
        }

        console.log(`\nTx ${receipt.transactionIndex}: ${receipt.transactionHash}`);
        console.log(`  Status: ${receipt.status === "0x1" ? "Success" : "Failed"}`);
        console.log(`  Gas Used: ${gasUsed}`);
        console.log(`  Logs: ${receipt.logs.length}`);

        // Arc-specific fields
        if (receipt.feeToken) {
          console.log(`  Fee Token: ${receipt.feeToken}`);
        }
        if (receipt.feePayer) {
          console.log(`  Fee Payer: ${receipt.feePayer}`);
        }
      }

      console.log(`\n--- Summary ---`);
      console.log(`Total transactions: ${receipts.length}`);
      console.log(`Successful: ${successCount}, Failed: ${failCount}`);
      console.log(`Total gas used: ${totalGasUsed}`);
    };

  getBlockReceipts("latest");
  ```

  ```python web3.py theme={"system"}
  from web3 import Web3

  node_url = "CHAINSTACK_NODE_URL"
  web3 = Web3(Web3.HTTPProvider(node_url))

  result = web3.provider.make_request("eth_getBlockReceipts", ["latest"])
  receipts = result['result']

  print(f"Block latest: {len(receipts)} transactions")

  total_gas_used = 0
  success_count = 0
  fail_count = 0

  for receipt in receipts:
      gas_used = int(receipt['gasUsed'], 16)
      total_gas_used += gas_used

      if receipt['status'] == "0x1":
          success_count += 1
      else:
          fail_count += 1

      print(f"\nTx {receipt['transactionIndex']}: {receipt['transactionHash']}")
      print(f"  Status: {'Success' if receipt['status'] == '0x1' else 'Failed'}")
      print(f"  Gas Used: {gas_used}")
      print(f"  Logs: {len(receipt['logs'])}")

      # Arc-specific fields
      if receipt.get('feeToken'):
          print(f"  Fee Token: {receipt['feeToken']}")
      if receipt.get('feePayer'):
          print(f"  Fee Payer: {receipt['feePayer']}")

  print(f"\n--- Summary ---")
  print(f"Total transactions: {len(receipts)}")
  print(f"Successful: {success_count}, Failed: {fail_count}")
  print(f"Total gas used: {total_gas_used}")
  ```

  ```bash cURL theme={"system"}
  curl -X POST "CHAINSTACK_NODE_URL" \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc": "2.0", "method": "eth_getBlockReceipts", "params": ["latest"], "id": 1}'
  ```
</CodeGroup>


## OpenAPI

````yaml openapi/arc_node_api/blocks_info/eth_getBlockReceipts.json POST /
openapi: 3.0.0
info:
  title: Chainstack Node API
  version: 1.0.0
  description: This is an API for interacting with a Chainstack node.
servers:
  - url: https://arc-testnet.core.chainstack.com/6caa7fd90475ac9214f7521dd460fa7c
security: []
paths:
  /:
    post:
      tags:
        - upload
      summary: eth_getBlockReceipts
      operationId: eth_getBlockReceipts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_getBlockReceipts
                params:
                  type: array
                  default:
                    - '0x3480c62'
      responses:
        '200':
          description: Returns the result of eth_getBlockReceipts.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: array
                    items:
                      type: object
                      properties:
                        type:
                          type: string
                        status:
                          type: string
                        cumulativeGasUsed:
                          type: string
                        logs:
                          type: array
                          items:
                            type: object
                        logsBloom:
                          type: string
                        transactionHash:
                          type: string
                        transactionIndex:
                          type: string
                        blockHash:
                          type: string
                        blockNumber:
                          type: string
                        gasUsed:
                          type: string
                        effectiveGasPrice:
                          type: string
                        from:
                          type: string
                        to:
                          type: string
                        contractAddress:
                          type: object
                          nullable: true
              example:
                jsonrpc: '2.0'
                id: 1
                result:
                  - type: '0x0'
                    status: '0x0'
                    cumulativeGasUsed: '0xc550'
                    logs: []
                    logsBloom: >-
                      0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
                    transactionHash: >-
                      0xfc48f7c70e8ffaa46b1110dc43f32e90f65434a0949edab384d066c820c57ee2
                    transactionIndex: '0x0'
                    blockHash: >-
                      0xa86891cc8ae2e3efe67b21e24f8f852e76a0875892e9e8c9a4c77aab8e2761cc
                    blockNumber: '0x3480c62'
                    gasUsed: '0xc550'
                    effectiveGasPrice: '0x53724e000'
                    from: '0x19d7cf8ea0ce468417d1eda365a222a9dcbc7d27'
                    to: '0xd011948bd0d6d433d4ba6df9dc44eb9a2bfa555f'
                    contractAddress: null

````