Logs

Compare With EtherScan

Get Event Logs by Address

[https://docs.etherscan.io/api-endpoints/logs#get-event-logs-by-address]

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

https://api.w3w.ai/mantle/v1/developer/api
   ?module=logs
   &action=getLogs
   &address=0x201eba5cc46d216ce6dc03f6a759e8e766e956ae
   &fromBlock=19999000
   &toBlock=20000000
   &page=1
   &offset=1000
   &apikey=YourApiKeyToken

Query Parameters

Get Event Logs by Topics

[https://docs.etherscan.io/api-endpoints/logs#get-event-logs-by-topics]

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

https://api.w3w.ai/mantle/v1/developer/api
   ?module=logs
   &action=getLogs
   &fromBlock=19999900
   &toBlock=20000000
   &topic0=0x19b47279256b2a23a1665c810c8d55a1758940ee09377d4f8d26497a3577dc83
   &topic0_1_opr=and
   &topic1=0x000000000000000000000000319b69888b0d11cec22caa5034e25fffbdc88421
   &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

[https://docs.etherscan.io/api-endpoints/logs#get-event-logs-by-address-filtered-by-topics]

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

https://api.w3w.ai/mantle/v1/developer/api
   ?module=logs
   &action=getLogs
   &address=0xd08c50f7e69e9aeb2867deff4a8053d9a855e26a
   &fromBlock=19999900
   &toBlock=20000000
   &topic0=0x19b47279256b2a23a1665c810c8d55a1758940ee09377d4f8d26497a3577dc83
   &topic0_1_opr=and
   &topic1=0x000000000000000000000000319b69888b0d11cec22caa5034e25fffbdc88421
   &page=1
   &offset=1000
   &apikey=YourApiKeyToken

Query Parameters

Last updated