EIP 234: `blockHash` to JSON-RPC filter options (DRAFT)

Return to Ethereum ERCs

Note: The following is an excerpt from the official Ethereum site. It is provided here as a convenience and is not authoritative. Refer to the original document as the authoritative reference.

Data sheet for Add to JSON-RPC filter options.

Title	Add to JSON-RPC filter options.
Author	Micah Zoltu
Status	Draft
Created	2017-03-24
Description	http://eips.ethereum.org/EIPS/eip-234
Specification	http://eips.ethereum.org/EIPS/eip-234#Specification
Category	Interface

Simple Summary

Add an option to JSON-RPC filter options (used by eth_newFilter and eth_getLogs) that allows specifying the block hash that should be included in the results. This option would be an alternative to fromBlock/toBlock options.

Abstract

This addition would allow clients to fetch logs for specific blocks, whether those blocks were in the current main chain or not. This resolves some issues that make it difficult/expensive to author robust clients due to the nature of chain reorgs, unreliable network connections and the result set not containing enough details in the empty case.