eth_getLogs
Returns an array of all logs matching filter with given id.
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."finalized"
- the latest finalized 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.
"earliest"
- the earliest/genesis block."latest"
- the latest mined block."finalized"
- the latest finalized 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. Each topic can also be an array of DATA with "or" options.blockhash
: (optional) restricts the logs returned to the given block. is equivalent to settingfromBlock
andtoBlock
to the block number referenced in theblockhash
Ifblockhash
is present in the filter criteria, then neitherfromBlock
nortoBlock
are allowed.
Sample Request
Sample Response
Last updated