JavaScript transforms filter by returning
null for records you don’t want. Use lowercase addresses and hashes: Allium data stores them in lowercase, and matching is exact.Filter logs by contract address
Monitor USDC transfer logs on Polygon by filtering on the USDC contract address.
address field, the contract that emitted the log, and drops every other record.
Filter and enrich in one transform
Keep only DEX swap events by event signature, then enrich each record.topic0 is the event signature hash; this one is the Uniswap V2 swap. Return early on records you don’t need so the rest of the script only runs on matches.
ERC-20 token transfers on Base
Track USDC transfers on Base with theerc20_token_transfer entity instead of raw logs.
token_address field, the token contract. The erc20_token_transfer entity is already decoded (sender, recipient, amount), so you don’t need to parse raw logs.
Filter on a list with a dataset
Monitor any number of contracts in one pipeline by checking each record against a dataset.tracked-stablecoins and add 0x3c499c542cef5e3811e1192ce70d8cc03d5c3359 (USDC) and 0xc2132d05d31c914a87c6611c10748aeb04b58e8f (USDT). Add or remove addresses at any time; running pipelines pick up changes with no redeploy.
External Kafka sink
Deliver records to your own Kafka cluster, authenticating with organization secrets.external_kafka sink, create the username and password secrets in Settings → Secrets. See the configuration reference for all fields.