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 transaction receipt objects
blockHash
string
The hash of the block. null when pending
blockNumber
string
The block number in hexadecimal format
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, in hexadecimal format
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, in hexadecimal format
logs
array
Array of log objects that were generated during this transaction
address
string
The contract address that generated this log
topics
array
Array of 0 to 4 32-byte strings. The first topic is usually the signature hash of the event
data
string
Contains the 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, in hexadecimal format
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, in hexadecimal format
removed
boolean
True when the log was removed due to a chain reorganization, false if its a valid log
logsBloom
string
A 256-byte bloom filter for light clients to quickly retrieve related logs
status
string
Either 0x1 (success) or 0x0 (failure)
to
string
The address of the receiver. null when its a contract creation transaction
transactionHash
string
The hash of the transaction
transactionIndex
string
The index position of the transaction in the block, in hexadecimal format
type
string
The transaction type in hexadecimal format (0x0 for legacy, 0x1 for EIP-2930, 0x2 for EIP-1559)
Request
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free