Skip to main content
GET
Get Event Logs by Address and Topics

Authorizations

apikey
string
query
required

Enter your Etherscan API key, or set one up if you don't have one.

Query Parameters

chainid
string
required

Chain ID to query, eg 1 for Ethereum, 42161 for Arbitrum from our supported chains.

module
string
default:logs
required

Set to logs for this endpoint.

action
string
default:getLogs
required

Set to getLogs for this endpoint.

fromBlock
integer
required

Starting block number to search from.

toBlock
integer
required

Ending block number to search to.

address
string
required

Address to check for logs.

topic0
string

First topic to filter by, such as an event signature.

topic0_1_opr
string

Topic operator between topic0 and topic1, either and or or.

topic1
string

Second topic to filter by.

page
integer

Page number for pagination.

offset
integer

Number of records per page. Use the page parameter for subsequent records.

Response

200 - application/json

Successful response

status
string

1 if the request returned data, 0 otherwise. A status of 0 can indicate an error or a valid request that returned no records.

message
string

OK on success, otherwise an error description such as NOTOK. See common error messages.

result
object[]