Returns an array of all logs matching filter with given id.
Parameters
Object - filter options:
fromBlock: Quantity or tag (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.
"safe" - the latest safe head block.
"finalized" - the latest finalized block.
"pending" - the pending state/transactions.
toBlock: Quantity or tag (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.
"safe" - the latest safe head 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 of DATA 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 setting fromBlock and toBlock to the block number referenced in the blockhash If blockhash is present in the filter criteria, then neither fromBlock nor toBlock are allowed.