Is it possible for smart contract to view past transactions done on it, in other words would it be possible for a smart contract to see who has sent it Ether since its inception?


1 Answer 1


it is possible only if you had registred them (in a map for example). the smart contract hasn't the ability to explore the blockchain to know has a log of the transaction senders.

  • That is what I suspected. I am trying to write contract that accepts ETH and after a set date will allocate tokens to those, but as wel all know the fallback function cant do much (not even a save to a gloabl map) with a send().
    – RFV
    Apr 26, 2017 at 15:47
  • 1
    @RFVenter The contract could have a buyTokens payable function that checks the block number or timestamp and then allocates tokens.
    – eth
    Apr 27, 2017 at 6:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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