Register and show off your project at Ethereum QuickPitch and win $10,000. Apply now


eth_getBlockReceipts RPC method

The API credit value for this method is 59 . To learn more about API credits and each method's value, visit the API Credits page.


  1. quantity or tag - Block Hash, block number (in hex), or one of the following block tags: 'latest', 'earliest', 'finalized', 'safe' or 'pending'. For more information, see the default block parameter description in Ethereum's documentation.


  1. Result - array[objects]

blockHash - string - Hash of the block. null when its a pending.

blockNumber - string - The block number.

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 senders account.

from - string - Address of the sender.

gasUsed - string - The amount of gas used by this specific transaction alone.

logs - array[objects] - Array of log objects, which this transaction generated.

address - string - 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 (e.g. Deposit(address,bytes32,uint256)), except you declare the event 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 - Hash of the transactions this log was created from. null when its a pending log.

transactionIndex - string - Integer of the transaction's index position that the log was created from. null when it's a pending log.

blockHash - string - Hash of the block where this log was in. null when its a pending log.

logIndex - string - Integer of the log index position in the block. null when its a pending log.

removed - boolean - True when the log was removed, due to a chain reorganization. false if it's a valid log.

logsBloom - string - Bloom filter for light clients to quickly retrieve related logs.

status - string - Either 1 (success) or 0 (failure).

to - string - Address of the receiver. null when it's a contract creation transaction.

transactionHash - string - Hash of the transaction.

transactionIndex - string - Index of the transaction in the block.

type - string

Code Examples:

from web3 import Web3, HTTPProvider
w3 = Web3(HTTPProvider(''))
params = "0xEDA8CE"
request = w3.provider.make_request('eth_getBlockReceipts', [params])
Ready to get started? Create a free account