Returns an array of logs matching the given filter criteria.
Returns an array of logs matching the given filter criteria. Particularly useful for indexing on-chain events.
Queries spanning large block ranges or high-activity contracts can time out or be rejected. Keep fromBlock-to-toBlock ranges under 2,000 blocks for reliable results. Node providers may enforce their own limits.
Array of 32-byte topic filters. Each position can be null (match any), a single topic hex string, or an array of topic hex strings (match any in the array). Position 0 is typically the keccak256 hash of the event signature. Optional.
On a Flashblocks-aware endpoint, use "pending" as the block parameter to query preconfirmed state — data available up to 200ms before the next full block is sealed.Set toBlock to "pending" to include logs from preconfirmed Flashblock transactions. Useful for monitoring contract events with sub-block latency.