Filter
To filter the input data that matches your conditions before passing to the next step.
Understand "Filter" in 4 minutes
This is the required first step when building a pipeline. The most basic component in a Filter is called a condition. By using a combination of conditions, you can instruct the Filter to only process the data that matches your conditions. Let's look at an example:
To find all the Livepeer token (LPT) transactions which were initiated by the address 0x6bA604963 and happened before June 1st 2020.
A and B and C
A simple token transaction can be identified by two things: a log called "Transfer" and a log address. In this case, we look for the "Transfer" log and the log address 0x58b6A8A3302369DAEc383334672404Ee733aB239 which is the address of the Livepeer Token contract.
Sometimes the conditions can be a bit complicated. For example, you might run into a condition like (A and B) or (C and D) . To achieve that, you would need to use "grouping"
. For example, let's try to find the transactions which happened after 2020-08-01 and contain the log "TournamentCreated" or transactions which happened before 2020-05-04and contain the log "Unbond".
(A and B) or (C and D)
💡
Tips on how to deal with a dynamic date range: For example if you want to display certain transactions in the past 24 hours, you can use a combination of system reserved words (start with $): "NOW", "24H", "30D" to achieve that:
$NOW - $24H: Past 24 hours
$NOW - $30D: Past 30 Days
Show me everything that happened in the past 24 hours
Last modified 1yr ago
Copy link