eth_getLogs
Returns an array of all logs matching filter with given id.
Parameters
Object - filter options:
fromBlock:Quantityortag(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:Quantityortag(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 ofDATAtopics. 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 settingfromBlockandtoBlockto the block number referenced in theblockhashIfblockhashis present in the filter criteria, then neitherfromBlocknortoBlockare allowed.
Sample Request
Sample Response
Last updated