We currently only support reading from an Allium PubSub stream, and writing to another Allium PubSub stream which you’ll be given access to.

Creating a Filter Data Source

To reference a Filter Data Source in a Filter, we need to first create one, and add values to it.

Example: POST /filter-data-sources
// Request
{
    "name": "Wallet Addresses List",
    "type": "string_array",
    "description": "Allowlist of wallets for transactions we want to track."
}

// Response
{
    "id": "3123712-aqw1-asdg-0293-1f48914e1e3f",
    "name": "Wallet Addresses List",
    "type": "string_array",
    "description": "Allowlist of wallets for transactions we want to track."
}

Updating a Filter Data Source

NOTE: For any running workflows, changing the values in a Data Source will be immediately applied.

Example: POST /filter-data-sources/filter_data_source_id
// Add
{
    "operation": "ADD",
    "values": [
        "0x0dfcac7b81015ea777f79d4e2f03980091ea2333"
    ]
}

// Delete
{
    "operation": "DELETE",
    "values": [
        "0x0dfcac7b81015ea777f79d4e2f03980091ea2333"
    ]
}