JSON-RPCMethods

eth_getBlockReceipts: parameters, returns and CU

Return all transaction receipts for a given block in a single call.

Summary

Return all transaction receipts for a given block. Official documentation

Compute units (CU) and pricing

CU per call

10 CU

Price per 1M calls (USD)

$1.00

Parameters

ParameterTypeDescription
blockQUANTITY|TAG|HASHBlock number (0x-prefixed hexadecimal quantity), block hash (32-byte, 0x-prefixed hex), or block tag: 'latest', 'earliest', 'pending', 'safe' or 'finalized'.

Returns

  • Type: ARRAY|NULL
  • Description: Array of transaction receipt objects, or null when the block is not found. Each receipt contains transactionHash, blockNumber, gasUsed, status, logs and related fields.

Notes

One call fetches a whole block's receipts, saving round trips compared with calling eth_getTransactionReceipt per transaction.

Request example

export BLOCKVECTRA_API_KEY=rgw_your_api_key

curl -X POST "https://api.blockvectra.com/v1/robinhood_mainnet" \
  -H 'Content-Type: application/json' \
  -H "x-api-key: $BLOCKVECTRA_API_KEY" \
  -d '{
    "jsonrpc": "2.0",
    "method": "eth_getBlockReceipts",
    "params": [
      "latest"
    ],
    "id": 1
  }'

Supported chains

Available on all 9 supported chains.

Last updated: