Skip to main content

Don't have an RPC Node yet?

Start using RPC Nodes in your project today.

Get your free RPC Node

eth_getBlockReceipts

Get Block Receipts

POSThttps://site1.moralis-nodes.com/:chain/:apiKey

Hypothetically retrieves all transaction receipts for a given block. This method would return detailed receipt information for each transaction contained within the specified block.

Note

Please refer to RPC schema page for more details on the RPC params and RPC response definitions of the RPC method.

PATH PARAMS
chainstringrequired
The blockchain to interact with.
apiKeystringrequired
Your API key for authentication.
BODY PARAM
Request Bodyobjectrequired
The request payload for retrieving transaction receipts by block.
Responses
200Returns all transaction receipts for the specified block.
400Bad Request
404Not Found
429Too Many Requests
500Internal Server Error
curl --request POST \
--url 'https://site1.moralis-nodes.com/eth/YOUR_API_KEY' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getBlockReceipts"
}
'
Response Example
[
{
"blockHash": "0x...",
"blockNumber": "0x...",
"contractAddress": "",
"cumulativeGasUsed": "0x...",
"effectiveGasPrice": "0x...",
"from": "0x...",
"gasUsed": "0x...",
"logs": [
{
"address": "0x...",
"topics": [
"0x..."
],
"data": "0x...",
"blockNumber": "0x...",
"transactionHash": "0x...",
"transactionIndex": "0x...",
"blockHash": "0x...",
"logIndex": "0x...",
"removed": ""
}
],
"logsBloom": "0x...",
"status": "0x1",
"to": "0x...",
"transactionHash": "0x...",
"transactionIndex": "0x...",
"type": "0x2"
}
]