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

Authorizations

apikey
string
query
required

Your Etherscan API key.

Query Parameters

chainid
string
required

Chain ID to query, eg 1 for Ethereum, 8453 for Base 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.