eth
eth_getBlockReceipts
Returns all transaction receipts for a given block. This is more efficient than calling eth_getTransactionReceipt individually for each transaction in a block.
Returns all transaction receipts for a given block. This is more efficient than calling eth_getTransactionReceipt individually for each transaction in a block.
Parameters
| # | Type | Description |
|---|---|---|
| 1 | string | Block number as a hexadecimal string, or a block tag ("latest", "earliest", "pending"). |
Returns
array -- An array of transaction receipt objects, or null if the block is not found. Each receipt contains:
| Field | Type | Description |
|---|---|---|
transactionHash | string | Hash of the transaction. |
transactionIndex | string | Index of the transaction within the block (hex). |
blockHash | string | Hash of the block containing the transaction. |
blockNumber | string | Block number (hex). |
from | string | Address of the sender. |
to | string | Address of the receiver. null for contract creation. |
cumulativeGasUsed | string | Total gas used in the block up to and including this transaction (hex). |
effectiveGasPrice | string | Actual gas price paid per unit of gas (hex). |
gasUsed | string | Gas used by this specific transaction (hex). |
contractAddress | string | Address of the created contract, or null if not a contract creation. |
logs | array | Array of log objects emitted by the transaction. |
logsBloom | string | Bloom filter for light clients to quickly retrieve related logs. |
status | string | "0x1" for success, "0x0" for failure. |
type | string | Transaction type (hex). "0x0" legacy, "0x1" EIP-2930, "0x2" EIP-1559. |
Example
curl -s -X POST https://rpc.pulsechain.box \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getBlockReceipts",
"params": ["0x18b7000"],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"transactionHash": "0xabc123...",
"transactionIndex": "0x0",
"blockHash": "0xdef456...",
"blockNumber": "0x18b7000",
"from": "0x...",
"to": "0x...",
"cumulativeGasUsed": "0x5208",
"effectiveGasPrice": "0x3b9aca00",
"gasUsed": "0x5208",
"contractAddress": null,
"logs": [],
"logsBloom": "0x0000...",
"status": "0x1",
"type": "0x0"
}
]
}
TRY IT
Notes
- This method returns all receipts for the block at once, making it significantly more efficient than fetching receipts individually when you need data for an entire block.
- The
statusfield indicates transaction success ("0x1") or failure ("0x0"). Failed transactions still consume gas. - The
logsarray in each receipt contains the event logs emitted during that transaction's execution. - Returns
nullif the specified block does not exist. - Blocks with many transactions will produce large responses. Consider using
eth_getTransactionReceiptfor individual lookups if you only need specific transactions.
eth_getLogs
Returns an array of event logs matching the given filter criteria. This is the primary method for querying contract events such as ERC20 transfers, approvals, and other on-chain activity.
eth_getTransactionByHash
Returns information about a transaction given its hash. This is the primary method for looking up individual transactions.
