Docs
Supported ChainszkSync EraJSON-RPC APIBlock Methods

eth_getBlockReceipts - zkSync RPC Method

Return every transaction receipt in a block on zkSync Era. Useful for indexers, analytics pipelines, and event backfills across RWA tokenization ($1.9B, 25% market share), hyperchain deployment via ZK Stack, and cross-chain DeFi.

Returns all transaction receipts for a block on zkSync Era. This is more efficient than calling eth_getTransactionReceipt once per transaction when you already know the target block.

Why zkSync? Build on Matter Labs' flagship zkEVM powering the Elastic Network of interoperable hyperchains with ZK Stack modular framework, hyperchain interoperability, native account abstraction, and $1.9B in tokenized real-world assets.

When to Use This Method

eth_getBlockReceipts is useful for ZK developers, RWA tokenization teams, and builders launching custom L2/L3 chains:

  • Indexer Backfills — Pull every receipt in a block with one request instead of looping over transaction hashes
  • Event Collection — Scan all logs emitted by a block when building analytics or data pipelines
  • Settlement Auditing — Verify every transaction outcome in a target block for RWA tokenization ($1.9B, 25% market share), hyperchain deployment via ZK Stack, and cross-chain DeFi
  • Operational Debugging — Compare receipt-level gas usage, status, and logs across multiple transactions at once

Request Parameters

Request
blockQUANTITY | TAG | DATA

Block number, block tag such as latest, or 32-byte block hash

Response Body

Response
resultArray<Object> | null

Array of receipt objects for the block, or null if the block is not found

transactionHashDATA

Transaction hash

statusQUANTITY

0x1 on success, 0x0 on failure

gasUsedQUANTITY

Gas used by this transaction

cumulativeGasUsedQUANTITY

Total gas used in the block up to this transaction

logsArray<Object>

Logs emitted by the transaction

contractAddressDATA | null

Created contract address for deployment transactions

effectiveGasPriceQUANTITY

Effective gas price paid by the sender

Code Examples

Bash
curl -X POST https://api-zksync-era-mainnet-full.n.dwellir.com/YOUR_API_KEY \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "eth_getBlockReceipts",
    "params": ["0x896c63ec4c3bcacb3367166437ae2b90530df268c3e7b870fb9138f98b0b060c"],
    "id": 1
  }'

Error Handling

Error CodeMessageDescription
-32602Invalid paramsThe block identifier is malformed
-32000Header not foundThe referenced block does not exist on the node