eth_newFilter
Install a log filter in the server, allowing for later polling. Registers client interest in logs matching the filter, and returns an identifier.
Parameters (by position)
Filter object or object required
Show Option 1 Filter by block range object
Filter by block range objectFilter by block range fields
Filter object required
Filter by block range
Show Filter object
Filter objectFilter fields
-
address
null or string or array<string>
Show Option 1
Any AddressnullShow Option 2
AddressstringShow Option 3
Addressesarray -
fromBlock
string or string
Show Option 1
Block numberstringShow Option 2
Block tagstringBlock tagfieldsearliest: The lowest numbered block the client has available;finalized: The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination;safe: The most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions;latest: The most recent block in the canonical chain observed by the client, this block may be re-orged out of the canonical chain even under healthy/normal conditions. Before the merge transition is finalized, any call querying forfinalizedorsafeblock MUST be responded to with-39001: Unknown blockerrorfromBlock
stringearliest: The lowest numbered block the client has available;finalized: The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination;safe: The most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions;latest: The most recent block in the canonical chain observed by the client, this block may be re-orged out of the canonical chain even under healthy/normal conditions. Before the merge transition is finalized, any call querying forfinalizedorsafeblock MUST be responded to with-39001: Unknown blockerrorAllowed values:
earliestfinalizedsafelatest -
toBlock
string or string
Show Option 1
Block numberstringShow Option 2
Block tagstringBlock tagfieldsearliest: The lowest numbered block the client has available;finalized: The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination;safe: The most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions;latest: The most recent block in the canonical chain observed by the client, this block may be re-orged out of the canonical chain even under healthy/normal conditions. Before the merge transition is finalized, any call querying forfinalizedorsafeblock MUST be responded to with-39001: Unknown blockerrortoBlock
stringearliest: The lowest numbered block the client has available;finalized: The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination;safe: The most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions;latest: The most recent block in the canonical chain observed by the client, this block may be re-orged out of the canonical chain even under healthy/normal conditions. Before the merge transition is finalized, any call querying forfinalizedorsafeblock MUST be responded to with-39001: Unknown blockerrorAllowed values:
earliestfinalizedsafelatest -
topics
null or array<unknown>
Show Option 1
Any Topic MatchnullShow Option 2
Specified Filter TopicsarraySpecified Filter Topicsfieldstopics
string or array<string>Show Option 1
Single Topic MatchstringShow Option 2
Multiple Topic Matcharray -
additionalProperties
true
Show Option 2 Filter by block hash object
Filter by block hash objectFilter by block hash fields
Filter object required
Filter by block hash
Show Filter object
Filter objectFilter fields
-
address
null or string or array<string>
Show Option 1
Any AddressnullShow Option 2
AddressstringShow Option 3
Addressesarray -
blockHash
stringrequiredblock hash
Match pattern:
^0x[0-9a-f]{64}$
-
topics
null or array<unknown>
Show Option 1
Any Topic MatchnullShow Option 2
Specified Filter TopicsarraySpecified Filter Topicsfieldstopics
string or array<string>Show Option 1
Single Topic MatchstringShow Option 2
Multiple Topic Matcharray -
additionalProperties
true
Result
Filter identifier string
hex encoded unsigned integer
Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$