Parameters
- blockNumberstringREQUIRED
The block number in hexadecimal format or the string latest, earliest, pending, safe or finalized
Returns
- resultarray | null
An array of transaction receipt objects. Returns null if the block is not found
- blockHashstring
The hash of the block containing this transaction
- blockNumberstring
The block number containing this transaction in hexadecimal
- fromstring
The address of the sender
- tostring | null
The address of the receiver. null when its a contract creation transaction
- cumulativeGasUsedstring
The total amount of gas used when this transaction was executed in the block in hexadecimal
- gasUsedstring
The amount of gas used by this specific transaction alone in hexadecimal
- contractAddressstring
The contract address - may be the same as the 'to' address for contract interactions or the newly created contract address for contract creations
- logsarray
Array of log objects that were generated during the transaction
- addressstring
The address from which this log originated
- topicsarray
Array of 0 to 4 32-byte topics (encoded event parameters)
- datastring
Contains the non-indexed arguments of the log
- blockNumberstring
The block number where this log was in hexadecimal
- transactionHashstring
The hash of the transaction this log was created from
- transactionIndexstring
The index position of the transaction in the block in hexadecimal
- blockHashstring
The hash of the block where this log was in
- blockTimestampstring
The timestamp of the block containing this log, encoded as a hexadecimal value
- logIndexstring
The index position of the log in the block in hexadecimal
- removedboolean
True when the log was removed due to a chain reorganization, false if valid
- logsBloomstring
A bloom filter of logs/events generated during this transaction
- transactionHashstring
The hash of the transaction
- transactionIndexstring
The transaction's index position in the block in hexadecimal
- effectiveGasPricestring
The actual value per gas deducted from the sender account in hexadecimal
- rootstring
The post-transaction state root (pre Byzantium)
- statusstring
The transaction status: 0x1 for success or 0x0 for failure
- typestring
The transaction type in hexadecimal (e.g., 0x0 for legacy transactions, 0x2 for EIP-1559)
- errorstring
Error message if the transaction failed, e.g., 'revert'. Only present for failed transactions
- revertReasonstring
(Optional) The Solidity revert reason, if any