Using Ethereum Smart Contract i want to count incoming transaction from wallet A and after transactions count get to let's say 50 transactions release a single transaction to wallet B.
Let's say i've got 2 functions
# Count transactions from the sender and attribute them to the receiver countIncomingTransction(Sender,Receiver) # Will count the total transactions for each receiver and if # it hits n+50 transactions , then send one transaction to the receiver. releaseTransactionFromCount
Is it possible do to this with Smart Contracts?
Maybe there is other way to do so?