eth_newFilter
Creates a filter object, based on filter options, to notify when the state changes (logs). To check if the state has changed, call eth_getFilterChanges or eth_getFilterLogs.
Parameters
Object
- filter options:
fromBlock
:Quantity
ortag
(optional, default is"latest"
if not specified)- choose 1 of the following options:
A hexadecimal block number.
"earliest"
- the earliest/genesis block."latest"
- the latest mined block."pending"
- the pending state/transactions.
toBlock
:Quantity
ortag
(optional, default is"latest"
if not specified)- choose 1 of the following options:
A hexadecimal block number.
"latest"
- the latest mined block."pending"
- the pending state/transactions.
address
: (optional) Contract address or a list of addresses from which logs should originate.topics
: (optional) Array ofData
topics. Topics are order-dependent. A transaction with a log with topics [A, B] will be matched by the following topic filters:[]
"anything"[A]
"A in first position (and anything after)"[null, B]
"anything in first position AND B in second position (and anything after)"[A, B]
"A in first position AND B in second position (and anything after)"[[A, B], [A, B]]
"(A OR B) in first position AND (A OR B) in second position (and anything after)"
Sample Request
Sample Response
Last updated