Parameters
- objectobject
The transaction call object which contains the following fields
- fromBlockstring
The block number as a string in hexadecimal format or tags. The
pendingtag is not supported for this field
- toBlockstring
The block number as a string in hexadecimal format or tags. Use
pendingto query logs from the latest Flashblock
- 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. Visit this official page to learn more about topics
- 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
- blockHashstring
The hash of the block where this log was in. Null when it's a pending log
- blockNumberstring
The block number containing this log. Null when the log is pending
- blockTimestampstring
The timestamp of the block where this log was included, in hexadecimal format
- datastring
It contains one or more 32 Bytes non-indexed arguments of the 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
- 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)
- 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
1{2"jsonrpc": "2.0",3"result": [4{5"address": "0x4200000000000000000000000000000000000006",6"blockHash": "0xbd1b36fd990609d1b6111e96c1c3edc501232c6b6771d729bbcb576274353baf",7"blockNumber": "0x2052f3b",8"blockTimestamp": "0x6a871b97",9"data": "0x00000000000000000000000000000000000000000000000000000093e98cce75",10"logIndex": "0x5",11"removed": false,12"topics": [13"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",14"0x0000000000000000000000009d3d8065fe36f6148bed659d5cf3fec122ccdb77",15"0x000000000000000000000000aa4dbd22a151a17dc30cc594110ce1993ecc2509"16],17"transactionHash": "0xe845ad11d6af4b4765be399edf27da644c47574389e76eeb4335570c95754be0",18"transactionIndex": "0x9"19},20{21"address": "0x4200000000000000000000000000000000000006",22"blockHash": "0xbd1b36fd990609d1b6111e96c1c3edc501232c6b6771d729bbcb576274353baf",23"blockNumber": "0x2052f3b",24"blockTimestamp": "0x6a871b97",25"data": "0x0000000000000000000000000000000000000000000000000000001f325041fa",26"logIndex": "0xc",27"removed": false,28"topics": [29"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",30"0x000000000000000000000000e007c6df0320145d9423b144c63822fb86a3ba4d",31"0x00000000000000000000000013241c48a28aa4e74eadda6ecb5a0e82a9959d25"32],33"transactionHash": "0x6dfea4daa754d54a5a432c83b6389c7aac8a584234b061d6788b761082479545",34"transactionIndex": "0x13"35},36{37"address": "0x4200000000000000000000000000000000000006",38"blockHash": "0xbd1b36fd990609d1b6111e96c1c3edc501232c6b6771d729bbcb576274353baf",39"blockNumber": "0x2052f3b",40"blockTimestamp": "0x6a871b97",41"data": "0x00000000000000000000000000000000000000000000000000000017da72e3ed",42"logIndex": "0x11",43"removed": false,44"topics": [45"0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c",46"0x000000000000000000000000ad153c844ccac3d2ea991170624200e54730be74"47],48"transactionHash": "0x15afb89cfbc698ec1130317563f001b745e5d30844e8ae97479c55459fb17dd7",49"transactionIndex": "0x16"50},51{52"address": "0x4200000000000000000000000000000000000006",53"blockHash": "0x9797ca031d75a5ee13515bf2030fd7be57b7b0bbfb1b263e74411e4f9159db71",54"blockNumber": "0x2052f3c",55"blockTimestamp": "0x6a871b98",56"data": "0x0000000000000000000000000000000000000000000000000000001fa33cf1aa",57"logIndex": "0x19",58"removed": false,59"topics": [60"0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c",61"0x000000000000000000000000ad153c844ccac3d2ea991170624200e54730be74"62],63"transactionHash": "0x3665ecc4671ef8980ceb464ea5a32491e437aed55e0f6b21782199567d463c42",64"transactionIndex": "0x18"65}66],67"id": 168}
1{2"jsonrpc": "2.0",3"result": [4{5"address": "0x4200000000000000000000000000000000000006",6"blockHash": "0xbd1b36fd990609d1b6111e96c1c3edc501232c6b6771d729bbcb576274353baf",7"blockNumber": "0x2052f3b",8"blockTimestamp": "0x6a871b97",9"data": "0x00000000000000000000000000000000000000000000000000000093e98cce75",10"logIndex": "0x5",11"removed": false,12"topics": [13"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",14"0x0000000000000000000000009d3d8065fe36f6148bed659d5cf3fec122ccdb77",15"0x000000000000000000000000aa4dbd22a151a17dc30cc594110ce1993ecc2509"16],17"transactionHash": "0xe845ad11d6af4b4765be399edf27da644c47574389e76eeb4335570c95754be0",18"transactionIndex": "0x9"19},20{21"address": "0x4200000000000000000000000000000000000006",22"blockHash": "0xbd1b36fd990609d1b6111e96c1c3edc501232c6b6771d729bbcb576274353baf",23"blockNumber": "0x2052f3b",24"blockTimestamp": "0x6a871b97",25"data": "0x0000000000000000000000000000000000000000000000000000001f325041fa",26"logIndex": "0xc",27"removed": false,28"topics": [29"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",30"0x000000000000000000000000e007c6df0320145d9423b144c63822fb86a3ba4d",31"0x00000000000000000000000013241c48a28aa4e74eadda6ecb5a0e82a9959d25"32],33"transactionHash": "0x6dfea4daa754d54a5a432c83b6389c7aac8a584234b061d6788b761082479545",34"transactionIndex": "0x13"35},36{37"address": "0x4200000000000000000000000000000000000006",38"blockHash": "0xbd1b36fd990609d1b6111e96c1c3edc501232c6b6771d729bbcb576274353baf",39"blockNumber": "0x2052f3b",40"blockTimestamp": "0x6a871b97",41"data": "0x00000000000000000000000000000000000000000000000000000017da72e3ed",42"logIndex": "0x11",43"removed": false,44"topics": [45"0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c",46"0x000000000000000000000000ad153c844ccac3d2ea991170624200e54730be74"47],48"transactionHash": "0x15afb89cfbc698ec1130317563f001b745e5d30844e8ae97479c55459fb17dd7",49"transactionIndex": "0x16"50},51{52"address": "0x4200000000000000000000000000000000000006",53"blockHash": "0x9797ca031d75a5ee13515bf2030fd7be57b7b0bbfb1b263e74411e4f9159db71",54"blockNumber": "0x2052f3c",55"blockTimestamp": "0x6a871b98",56"data": "0x0000000000000000000000000000000000000000000000000000001fa33cf1aa",57"logIndex": "0x19",58"removed": false,59"topics": [60"0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c",61"0x000000000000000000000000ad153c844ccac3d2ea991170624200e54730be74"62],63"transactionHash": "0x3665ecc4671ef8980ceb464ea5a32491e437aed55e0f6b21782199567d463c42",64"transactionIndex": "0x18"65}66],67"id": 168}