Parameters
- objectobject
The log filter options
- fromBlockstring
A block number encoded as hexadecimal, or a block tag: earliest, latest, pending, safe, or finalized.
- toBlockstring
A block number encoded as hexadecimal, or a block tag: earliest, latest, pending, safe, or finalized.
- addressstring
The contract address or a list of addresses from which logs should originate
- topicsarray
An array of DATA topics and also, the topics are order-dependent
- blockHashstring
With the addition of EIP-234, blockHash is a new filter option that restricts the logs returned to the block number referenced in the blockHash. Using the blockHash field is equivalent to setting the fromBlock and toBlock to the block number the blockHash references. If blockHash is present in the filter criteria, neither fromBlock nor toBlock is allowed
Returns
- resultarray
An array of log objects, or an empty array if nothing has changed since last poll
- addressstring
The address from which this log originated
- topicsarray
An array of (0 to 4) 32 Bytes DATA of indexed log arguments. (In solidity: The first topic is the hash of the signature of the event (e.g. Deposit(address,bytes32,uint256)), except you declared the event with the anonymous specifier)
- datastring
It contains one or more 32 Bytes non-indexed arguments of the log
- blockHashstring
The hash of the block where this log was in. Null when it's a pending log
- blockNumberstring
The block number where this log was in. null when its pending
- transactionHashstring
The hash of the transaction from which this log was created from. null if the log is pending
- transactionIndexstring
The integer of the transaction's index position that the log was created from. Null when it's a pending log
- logIndexstring
The integer of the log index position in the block. Null when it's a pending log
- removedboolean
It is true if log was removed, due to a chain reorganization and false if it's a valid log
- blockTimestampstring
The timestamp of the block in which the log was included encoded in hexadecimal format
1{2"jsonrpc": "2.0",3"id": 1,4"result": []5}
1{2"jsonrpc": "2.0",3"id": 1,4"result": []5}