1

Are transactions sending ether from contract addresses to normal addresses listed in block.transactions or are they not trivial to detect?
If not in block.transactions than how to detect?

0

All transactions are listed in blocks and can be recovered using the transaction hash. You can poll for changes on your node by filtering to what you're looking for. Also, if you fire an event from your contract, you can filter to only get updates when you see that event; so, if you want your contract to alert you every time it sends out ether, you could create an event that gets emitted any time a payable function is called.

  • I want to be receiving ether on my external owned account. I want to know if I will see ether sent from a smart contact in block.transactions. I don't have control over senders smart contracts and don't know from which contract the funds will be coming – jeff Jun 21 '18 at 8:32
  • You want to monitor every time a contract should be sending you ether? Couldn't you just watch for changes in your account balance? I think I need context to be able to help more. – confusedpigeon Jun 21 '18 at 20:27

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.