# Ethereum eth_getBlockReceipts RPC method
Ethereum API method that returns all transaction receipts for a given block. This method is available on Erigon only.
# Enable Erigon client on your dedicated Ethereum node
Information
Available on the Growth subscription plan and higher.
Once you have joined a public network, do the following:
- Select the project with the network.
- Select the network.
- Click Add node.
- Provide a node name.
- Under Type, select Dedicated.
- Under Mode, select Archive. With an archive node, you will be able to query historical states for the entire chain.
- Under Hosting, select Chainstack. See Support hosting options.
- For Chainstack hosting, select a cloud provider and a region.
- Under Client, select Erigon.
- Review your changes and click Send request.
Chainstack Sales team will reach out to your shortly.
# Enable Erigon client on your elastic Ethereum node
Information
Available on the Business subscription plan and higher.
Once you have joined a public network, do the following:
- Select the project with the network.
- Select the network.
- Click Add node.
- Provide a node name.
- Under Type, select Elastic.
- Under Mode, select Archive. With an archive node, you will be able to query historical states for the entire chain.
- Under Debug and trace APIs, select On.
- Under Hosting, select Chainstack.
- For Chainstack hosting, select a cloud provider and a region.
- Review your changes and click Add node.
The node status will change from Pending to Running once deployed. You will also see the Debug and trace tag next to the node name.
Parameters:
quantity or tag
— the block hash, block number encoded as hexadecimal, or the string with:latest
— the latest block that is to be validated. The Beacon Chain may reorg and the latest block can become orphaned.safe
— the block that is equal to the tip of the chain and is very unlikely to be orphaned.finalized
— the block that is accepted by the two thirds of the Ethereum validators.earliest
— the genesis block.pending
— the pending state and transactions block.
Returns:
result
— the array of objects with:Transaction receipt
— the object with:blockHash
— the block hash.null
if pending.blockNumber
— the block number.contractAddress
— the contract address created if it is a contract creation transaction; otherwisenull
.cumulativeGasUsed
— the total amount of gas used in the block when this transaction was executed.effectiveGasPrice
— the actual value of gas deducted from the sender's account.from
— the sender's address.gasUsed
— the amount of gas used by this specific transaction alone.logs
— this transaction's array of log objects generated.logsBloom
— the bloom filter for light clients to quickly retrieve related logs.status
— the success status:1
for success or0
for failure.to
— the receiver's address.null
if it is a contract creation transaction.transactionHash
— the transaction hash.transactionIndex
— the transaction index.
Example:
- web3.py
- cURL
from web3 import Web3
node_url = "CHAINSTACK_NODE_URL"
web3 = Web3.HTTPProvider(node_url)
block_receipts = web3.make_request('eth_getBlockReceipts', ['latest'])
print(block_receipts)