Get Event Logs by Topics
Retrieves event logs within a specified block range, filtered by topics.
Authorizations
Enter your Etherscan API key, or set one up if you don't have one.
Query Parameters
Chain ID to query, eg 1 for Ethereum, 42161 for Arbitrum from our supported chains.
Set to logs for this endpoint.
Set to getLogs for this endpoint.
Starting block number to search from.
Ending block number to search to.
The first topic to filter by. Provide at least one of topic0, topic1, topic2, or topic3.
Topic operator between topic0 and topic1, either and or or.
Second topic to filter by.
Topic operator between topic1 and topic2, either and or or.
Third topic to filter by.
Topic operator between topic2 and topic3, either and or or.
Fourth topic to filter by.
Topic operator between topic0 and topic2, either and or or.
Topic operator between topic0 and topic3, either and or or.
Topic operator between topic1 and topic3, either and or or.
Page number for pagination.
Number of records per page. Use the page parameter for subsequent records.
Response
Successful response
1 if the request returned data, 0 otherwise. A status of 0 can indicate an error or a valid request that returned no records.
OK on success, otherwise an error description such as NOTOK. See common error messages.