Get Event Logs by Topics
Retrieves event logs within a specified block range, filtered by topics.
Authorizations
Your Etherscan API key.
Query Parameters
Chain ID to query, eg 1 for Ethereum, 8453 for Base 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.