QuickAlerts listening to transfers from multiple addresses

Hey team, I have a specific question about QuickAlerts, looking to set up a use case to listen to five wallet addresses, for any transfers. I have created an expression, but I notice it’s not really picking many transactions up. So I must’ve written my expression wrong.

The expression:

(tx_to == '0xf977814e90da44bfa03b6295a0616a897441acec') 
|| (tx_from == '0xf977814e90da44bfa03b6295a0616a897441acec')  
|| (tx_to == '0x6cc5f688a315f3dc28a7781717a9a798a59fda7b') 
|| (tx_from == '0x6cc5f688a315f3dc28a7781717a9a798a59fda7b') 
|| (tx_to == '0x9acbb72cf67103a30333a32cd203459c6a9c3311') 
|| (tx_from == '0x9acbb72cf67103a30333a32cd203459c6a9c3311')
|| (tx_to == '0x9f5e46e4990dee30665b2e803ba134564d1e087f') 
|| (tx_from == '0x9f5e46e4990dee30665b2e803ba134564d1e087f')
|| (tx_to == '0x11950d141ecb863f01007add7d1a342041227b58') 
|| (tx_from == '0x11950d141ecb863f01007add7d1a342041227b58') && (tx_logs_topic0 == '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef')

Can someone help. I see many hundreds of transactions on etherscan for this criteria, but it’s picking up only like 2 or 3 matchedReceipts and matchedTransaction from my expression.

What have I done wrong?

Hey Crispy,

What network are you listening on? Can you describe the kinds of transactions you are looking for? I see the tx_from tx_to conditions and then the logs topic0 for the transfer event. Are you looking for ERC20/NFT transfers to/from the wallets? Or when the wallets initiate or receive transactions in which a transfer event occurs?

-Nick

Hello, regarding transactions, I’m looking for any kind of transfer into or out of any of those addresses. The topic0 I am using is the Transfer event which I expected should pick up both erc20 and NFT transfers?
The chain I’m listening to is Ethereum.

Hey Crispy,

Try ((tx_from == '0xf977814e90da44bfa03b6295a0616a897441acec') || (tx_to == '0xf977814e90da44bfa03b6295a0616a897441acec')) || ((tx_logs_topic0 in ('0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef','0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62','0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb')) && ((tx_logs_topic1 =~ 'f977814e90da44bfa03b6295a0616a897441acec') || (tx_logs_topic2 =~ 'f977814e90da44bfa03b6295a0616a897441acec'))

Please try making an expression like that for each of the monitored addresses. Note that we used the regex comparator to look for the string, which is the address without the 0x for the tx_logs_topics 1 and 2.

-Nick