Parameters
The log filter options
A block number encoded as hexadecimal, or a block tag: earliest, latest, pending, safe, or finalized.
A block number encoded as hexadecimal, or a block tag: earliest, latest, pending, safe, or finalized.
The contract address or a list of addresses from which logs should originate
An array of DATA topics and also, the topics are order-dependent
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
An array of log objects, or an empty array if nothing has changed since last poll
The address from which this log originated
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)
It contains one or more 32 Bytes non-indexed arguments of the log
The hash of the block where this log was in. Null when it's a pending log
The block number where this log was in. null when its pending
The hash of the transaction from which this log was created from. null if the log is pending
The integer of the transaction's index position that the log was created from. Null when it's a pending log
The integer of the log index position in the block. Null when it's a pending log
It is true if log was removed, due to a chain reorganization and false if it's a valid log
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{6"address": "0xd0e627cd8e3197503cc1283fdb7f97fb3d6c5d95",7"topics": [8"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",9"0x0000000000000000000000003af31c44a2419b8356dae9ce0f8526bbe2a6458f",10"0x000000000000000000000000e670ffa1d10d0825077afdbbb76fc93dfd10266c",11"0x00000000000000000000000000000000000000000000000000000000000002cf"12],13"data": "0x",14"blockNumber": "0x92c210",15"transactionHash": "0xb67fd281fe0672a7671db6b3bd41208c2de067887c6c18e813d8f460ecf66b04",16"transactionIndex": "0x1",17"blockHash": "0x4659abbf3cb14ae45c5db1375d5264ed365fde139763ecb6a3577c60eb0a3799",18"blockTimestamp": "0x6ad1095e",19"logIndex": "0x0",20"removed": false21},22{23"address": "0x0ff8b7afc288ac42f82320f54a49c400f233bf07",24"topics": [25"0x72d3f914473a393354e6fcd9c3cb7d2eee53924b9b856f9da274e024566292a5"26],27"data": "0x0000000000000000000000003af31c44a2419b8356dae9ce0f8526bbe2a6458f000000000000000000000000e670ffa1d10d0825077afdbbb76fc93dfd10266c000000000000000000000000d0e627cd8e3197503cc1283fdb7f97fb3d6c5d9500000000000000000000000000000000000000000000000000000000000002cf000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000470de4df82000000000000000000000000000041051f27c609db70af05b7128f15155dc8e49ac7",28"blockNumber": "0x92c210",29"transactionHash": "0xb67fd281fe0672a7671db6b3bd41208c2de067887c6c18e813d8f460ecf66b04",30"transactionIndex": "0x1",31"blockHash": "0x4659abbf3cb14ae45c5db1375d5264ed365fde139763ecb6a3577c60eb0a3799",32"blockTimestamp": "0x6ad1095e",33"logIndex": "0x1",34"removed": false35}36]37}
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"address": "0xd0e627cd8e3197503cc1283fdb7f97fb3d6c5d95",7"topics": [8"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",9"0x0000000000000000000000003af31c44a2419b8356dae9ce0f8526bbe2a6458f",10"0x000000000000000000000000e670ffa1d10d0825077afdbbb76fc93dfd10266c",11"0x00000000000000000000000000000000000000000000000000000000000002cf"12],13"data": "0x",14"blockNumber": "0x92c210",15"transactionHash": "0xb67fd281fe0672a7671db6b3bd41208c2de067887c6c18e813d8f460ecf66b04",16"transactionIndex": "0x1",17"blockHash": "0x4659abbf3cb14ae45c5db1375d5264ed365fde139763ecb6a3577c60eb0a3799",18"blockTimestamp": "0x6ad1095e",19"logIndex": "0x0",20"removed": false21},22{23"address": "0x0ff8b7afc288ac42f82320f54a49c400f233bf07",24"topics": [25"0x72d3f914473a393354e6fcd9c3cb7d2eee53924b9b856f9da274e024566292a5"26],27"data": "0x0000000000000000000000003af31c44a2419b8356dae9ce0f8526bbe2a6458f000000000000000000000000e670ffa1d10d0825077afdbbb76fc93dfd10266c000000000000000000000000d0e627cd8e3197503cc1283fdb7f97fb3d6c5d9500000000000000000000000000000000000000000000000000000000000002cf000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000470de4df82000000000000000000000000000041051f27c609db70af05b7128f15155dc8e49ac7",28"blockNumber": "0x92c210",29"transactionHash": "0xb67fd281fe0672a7671db6b3bd41208c2de067887c6c18e813d8f460ecf66b04",30"transactionIndex": "0x1",31"blockHash": "0x4659abbf3cb14ae45c5db1375d5264ed365fde139763ecb6a3577c60eb0a3799",32"blockTimestamp": "0x6ad1095e",33"logIndex": "0x1",34"removed": false35}36]37}