eth_getLogs
Returns an array of all the logs matching the given filter object. See also the below Constraints section.
Parameters
A filter object containing the following:
- address: [optional] Contract address (20 bytes) or a list of addresses from which logs should originate.
- fromBlock: [optional, default is "latest"] A hexadecimal block number, or one of the string tags- latest,- earliest,- pending,- safe, or- finalized. See the default block parameter.
- toBlock: [optional, default is "latest"] A hexadecimal block number, or one of the string tags- latest,- earliest,- pending,- safe, or- finalized. See the default block parameter.
- topics: [optional] Array of 32 bytes DATA topics. Topics are order-dependent.
- blockhash: [optional] Restricts the logs returned to the single block referenced in the 32-byte hash- blockHash. Using- blockHashis equivalent to setting- fromBlockand- toBlockto the block number referenced in the- blockHash. If- blockHashis present in in the filter criteria, then neither- fromBlocknor- toBlockare allowed.