Skip to main content

eth_getBlockReceipts RPC Method

Returns all transaction receipts for a given block.

Updated on
Feb 25, 2025

eth_getBlockReceipts RPC Method

Parameters

blockNumber
string
REQUIRED
The block number in hexadecimal format or the string latest, earliest, pending, safe or finalized

Returns

result
array
An array of objects, each representing a transaction receipt
blockHash
string
The hash of the block. null when pending
blockNumber
string
The block number in hexadecimal
contractAddress
string
The contract address created if the transaction was a contract creation, otherwise null
cumulativeGasUsed
string
The total amount of gas used when this transaction was executed in the block
effectiveGasPrice
string
The actual value per gas deducted from the sender account
from
string
The address of the sender
gasUsed
string
The amount of gas used by this specific transaction alone
l1BatchNumber
string
The L1 batch number containing this transaction
l1BatchTxIndex
string
The index of the transaction within the L1 batch
l2ToL1Logs
array
Array of L2 to L1 logs generated by this transaction
logs
array
Array of log objects generated by this transaction
address
string
The address from which this log originated
topics
array
Array of zero to four 32 Bytes DATA of indexed log arguments. In Solidity, the first topic is the hash of the signature of the event unless the event is declared with the anonymous specifier
data
string
Contains one or more 32 Bytes non-indexed arguments of the log
blockNumber
string
The block number where this log was in. null when its a pending log
transactionHash
string
The hash of the transactions this log was created from. null when its a pending log
transactionIndex
string
The index position of the transaction in the block
blockHash
string
The hash of the block where this log was in. null when its a pending log
logIndex
string
The index position of the log in the block
transactionLogIndex
string
The index position of the log in the transaction
logType
string
The type of the log entry
removed
boolean
True when the log was removed due to a chain reorganization, false if it's a valid log
blockTimestamp
string
The timestamp of the block containing this log
l1BatchNumber
string
The L1 batch number containing this log
logsBloom
string
The bloom filter for light clients to quickly retrieve related logs
status
string
Either 1 (success) or 0 (failure) encoded as a hexadecimal
to
string
The address of the receiver. null when it's a contract creation transaction
transactionHash
string
The hash of the transaction
transactionIndex
string
The index of the transaction in the block
type
string
The transaction type
Request
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free