Skip to main content

Logs

Get Event Logs by Address

Returns the event logs from an address, with optional filtering by block range.

https://gatescan.org/api
?module=logs
&action=getLogs
&address=0x94a8b59163e204102569880bf6d40dd591051938
&fromBlock=871852
&toBlock=871855
&page=1
&offset=1000
&apikey=YourApiKeyToken

Try this endpoint in your broswer

ParameterDescription
addressthe string representing the address to check for logs
fromBlockthe integer block number to start searching for logs eg. 12878196
toBlockthe integer block number to stop searching for logs eg. 12879196
pagethe integer page number, if pagination is enabled
offsetthe number of transactions displayed per page limited to 1000 records per query, use the page parameter for subsequent records

Get Event Logs by Topics

Returns the events log in a block range, filtered by topics.

https://gatescan.org/api
?module=logs
&action=getLogs
&topic0=0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
&topic1=0x000000000000000000000000c6ef7050fbe638ffd992343c4c8271b9af605d6c
&topicOperator=and
&fromBlock=1403521
&toBlock=1403525
&page=1
&offset=1000
&apikey=YourApiKeyToken

Try this endpoint in your broswer

ParameterDescription
topicthe topic numbers to search for limited totopic0, topic1, topic2, topic3
topicOperatorthe topic operator when multiple topic combinations are used limited to and or or
fromBlockthe integer block number to stop searching for logs eg. 12879196
toBlockthe integer block number to stop searching for logs eg. 12879196
pagethe integer page number, if pagination is enabled
offsetthe number of transactions displayed per page limited to 1000 records per query, use the page parameter for subsequent records

Get Event Logs by Address filtered by Topics

Returns the event logs from an address, filtered by topics and block range.

https://gatescan.org/api
?module=logs
&action=getLogs
&address=0x94a8b59163e204102569880bf6d40dd591051938
&topic0=0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
&topic1=0x000000000000000000000000c6ef7050fbe638ffd992343c4c8271b9af605d6c
&topicOperator=and,
&fromBlock=1403521
&toBlock=1403525
&page=1
&offset=1000
&apikey=YourApiKeyToken

Try this endpoint in your broswer

ParameterDescription
addressthe string representing the address to check for logs
topicthe topic numbers to search for limited totopic0, topic1, topic2, topic3
topicOperatorthe topic operator when multiple topic combinations are used limited to and or or
fromBlockthe integer block number to stop searching for logs eg. 12879196
toBlockthe integer block number to stop searching for logs eg. 12879196
pagethe integer page number, if pagination is enabled
offsetthe number of transactions displayed per page limited to 1000 records per query, use the page parameter for subsequent records

Last updated on 2025/06/05