Logs

Get Event Logs by Address

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

https://api.wemixscan.com/api
   ?module=logs
   &action=getLogs
   &address=0x7d72b22a74a216af4a002a1095c8c707d6ec1c5f
   &fromBlock=29572040
   &toBlock=29572042
   &page=1
   &offset=1000
   &apikey=YourApiKeyToken

Query Parameters

Get Event Logs by Topics

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

https://api.wemixscan.com/api
   ?module=logs
   &action=getLogs
   &fromBlock=29572040
   &toBlock=29572042
   &topic0=0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
   &topic0_1_opr=and
   &topic1=0x0000000000000000000000000292e4d76361b8781f8fc04119a06774d3ce3216
   &page=1
   &offset=1000
   &apikey=YourApiKeyToken

Usage:

  • For a single topic, specify the topic number such as topic0, topic1, topic2, topic3

  • For multiple topics, specify the topic numbers and topic operator either and or or such as below topic0_1_opr (and|or between topic0 & topic1), topic1_2_opr (and|or between topic1 & topic2) topic2_3_opr (and|or between topic2 & topic3), topic0_2_opr (and|or between topic0 & topic2) topic0_3_opr (and|or between topic0 & topic3), topic1_3_opr (and|or between topic1 & topic3)

Query Parameters

Get Event Logs by Address filtered by Topics

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

https://api.wemixscan.com/api
   ?module=logs
   &action=getLogs
   &fromBlock=29572040
   &toBlock=29572042
   &address=0x7d72b22a74a216af4a002a1095c8c707d6ec1c5f
   &topic0=0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
   &topic0_1_opr=and
   &topic1=0x0000000000000000000000000292e4d76361b8781f8fc04119a06774d3ce3216
   &page=1
   &offset=1000
   &apikey=YourApiKeyToken

Query Parameters

Last updated