Parameters
The filter id that is returned from eth_newFilter, eth_newBlockFilter or eth_newPendingTransactionFilter
Returns
An array of one of the following, depending on the filter type, or empty if there were no changes since the last poll:
The 32 byte hash of a block that meets your filter requirements
The 32 byte hash of a transaction that meets your filter requirements
An address from which this log originated
An array of zero to four 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 declare the event with the anonymous specifier
It contains one or more 32 Bytes non-indexed arguments of the log
The block number where this log was in. null when its a pending log
The hash of the transactions this log was created from. null when its a pending log
The integer of the transaction's index position that the log was created from, encoded as hexadecimal. null when it's a pending log
The hash of the block where this log was in. null when its a pending log
The integer of the log index position in the block, encoded as hexadecimal. null when it's a pending log
It is true when the log was removed due to a chain reorganization, and false if it's a valid log
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"logIndex": "0x0",7"removed": false,8"blockNumber": "0x233",9"blockHash": "0xfc139f5e2edee9e9c888d8df9a2d2226133a9bd87c88ccbd9c930d3d4c9f9ef5",10"transactionHash": "0x66e7a140c8fa27fe98fde923defea7562c3ca2d6bb89798aabec65782c08f63d",11"transactionIndex": "0x0",12"address": "0x42699a7612a82f1d9c36148af9c77354759b210b",13"data": "0x0000000000000000000000000000000000000000000000000000000000000004",14"topics": [15"0x04474795f5b996ff80cb47c148d4c5ccdbe09ef27551820caa9c2f8ed149cce3"16]17},18{19"logIndex": "0x0",20"removed": false,21"blockNumber": "0x238",22"blockHash": "0x98b0ec0f9fea0018a644959accbe69cd046a8582e89402e1ab0ada91cad644ed",23"transactionHash": "0xdb17aa1c2ce609132f599155d384c0bc5334c988a6c368056d7e167e23eee058",24"transactionIndex": "0x0",25"address": "0x42699a7612a82f1d9c36148af9c77354759b210b",26"data": "0x0000000000000000000000000000000000000000000000000000000000000007",27"topics": [28"0x04474795f5b996ff80cb47c148d4c5ccdbe09ef27551820caa9c2f8ed149cce3"29]30}31]32}
1{2"jsonrpc": "2.0",3"id": 1,4"result": [5{6"logIndex": "0x0",7"removed": false,8"blockNumber": "0x233",9"blockHash": "0xfc139f5e2edee9e9c888d8df9a2d2226133a9bd87c88ccbd9c930d3d4c9f9ef5",10"transactionHash": "0x66e7a140c8fa27fe98fde923defea7562c3ca2d6bb89798aabec65782c08f63d",11"transactionIndex": "0x0",12"address": "0x42699a7612a82f1d9c36148af9c77354759b210b",13"data": "0x0000000000000000000000000000000000000000000000000000000000000004",14"topics": [15"0x04474795f5b996ff80cb47c148d4c5ccdbe09ef27551820caa9c2f8ed149cce3"16]17},18{19"logIndex": "0x0",20"removed": false,21"blockNumber": "0x238",22"blockHash": "0x98b0ec0f9fea0018a644959accbe69cd046a8582e89402e1ab0ada91cad644ed",23"transactionHash": "0xdb17aa1c2ce609132f599155d384c0bc5334c988a6c368056d7e167e23eee058",24"transactionIndex": "0x0",25"address": "0x42699a7612a82f1d9c36148af9c77354759b210b",26"data": "0x0000000000000000000000000000000000000000000000000000000000000007",27"topics": [28"0x04474795f5b996ff80cb47c148d4c5ccdbe09ef27551820caa9c2f8ed149cce3"29]30}31]32}