eth_getFilterLogs - Optimism

Returns an array of all logs matching filter with given id. Can compute the same results with an eth_getLogs call.

Path Params
string
required
Defaults to docs-demo

For higher throughput, create your own API key

Body Params
integer
Defaults to 1
string
Defaults to 2.0
params
array of strings
length between 1 and 1
Defaults to 0x1

String - The filter id.

params
string
Defaults to eth_getFilterLogs
Response

Response body
object
integer
string
result
array of objects

Array of log objects, or an empty array if nothing has changed since last poll.

result
object
string

32 Bytes - hash of the block where this log was in. null when its pending. null when its pending log

string

The block number where this log was in. null when its pending. null when its pending log.

string

Integer of the transactions index position log was created from. null when its pending log.

string

20 Bytes - address from which this log originated.

string

Integer of the log index position in the block. null when its pending log.

string

Contains one or more 32 Bytes non-indexed arguments of the log.

boolean

true when the log was removed, due to a chain reorganization. false if its a valid log.

topics
array of strings

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.

topics
string

Hash of the transactions this log was created from. null when its pending log.

Language
URL
Click Try It! to start a request and see the response here! Or choose an example:
application/json
ReadMe
Support Hub