Logs
The Event Log API was designed to provide an alternative to the native eth_getLogs.
Below are the list of supported filter parameters:
fromBlock, toBlock, address
topic0, topic1, topic2, topic3 (32 Bytes per topic)
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)
For performance & security considerations, only the first 1000 results are return. So please narrow down the filter parameters.
Sample Log API Queries
Get Event Logs from block number 23089831 to 23090831, where log address = 0x0f2B5005E5865AC67599b0777Dc5bc4733a97B22and topic[0] = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
Try this endpoint in your browser 🔗
Get Event Logs from block number 23090831 to block 13387473, where log address = 0x8d4cbe791112da3fce6feaf67cae4a05e6097cdf, topic[0] = 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925 'AND' topic[1] = 0x000000000000000000000000b06649e2d93d33a43e98f5318190bd5dfe0532ed
Try this endpoint in your browser 🔗
Last updated