0

First I wanted to listen on a specific account address and found out I couldn't.

My solution was to listen to all transactions using web3.subscribe("logs") but I wonder if I can get the sender (or decode the data) of the transaction without getting the transaction's receipt.

It works if after receiving an event I get the receipt but the thing is there is a lot of transactions and I get a too many requests from my node.

Any help will be greatly appreciated

0

The sender was in the second element of the topics array. I used web3.decodeParameter('address', topics[1]) and successfully got the sender

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.