eth_getBlockReceipts
Returns all transaction receipts for a given block, the amount of gas used, and any event logs that might have been produced by a smart contract during the transaction.
Parameters
blockNumber:[Required] Hexadecimal or decimal integer representing a block number, or one of the string tags:
latestearliestpendingfinalizedsafe
Returns
result: object Block object or null when there is no corresponding block. the object consists of a series of transaction receipt object.
The transaction receipt object will contain the following keys and their values:
blockHash: 32 bytes. Hash of the block including this transaction.blockNumber: Block number including this transaction.contractAddress: 20 bytes. The contract address created if the transaction was a contract creation, otherwisenull.cumulativeGasUsed: The total amount of gas used when this transaction was executed in the block.effectiveGasPrice: The actual value per gas deducted from the sender's account. Before EIP-1559, equal to the gas price.from: 20 bytes. The address of the sender.gasUsed: The amount of gas used by this specific transaction alone.logs: (Array) An array of log objects generated by this transaction.logsBloom: 256 bytes. Bloom filter for light clients to quickly retrieve related logs.One of the following:
root: 32 bytes of post-transaction stateroot (pre-Byzantium)status: Either 1 (success) or 0 (failure)
to: 20 bytes. The address of the receiver.nullwhen the transaction is a contract creation transaction.transactionHash: 32 bytes. The hash of the transaction.transactionIndex: Hexadecimal of the transaction's index position in the block.type: the transaction type.
Example
Request
Response
Last updated