Filter

To filter the input data that matches your conditions before passing to the next step.

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 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.

💡 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

Last updated