0

I might be missing something obvious here, but where can i find the records/ receipts for transactions made using transfer() method in smart contract? Without using events or something explicit for this purpose.

2 Answers 2

2

Events and receipts are not saved part of the contract. However they are saved part of the blockchain. Once they are generated they become part of the blockchain forever.

If you don't specifically save something in the contract storage you have to use the events and receipts to get data about the transactions.

2
  • So you are saying without making an explicit utility/event there is no way to know about the ether transfers from smart contract ? Doesn't that seems a bit odd for a completely transparent, decentralized technology if can't trace back a certain type ether transfers.
    – sp4c3
    Mar 21, 2018 at 12:57
  • As long as the information is available and accessible it is transparent. That doesn't mean all tools exists to explore all the data possibilities user wants
    – Asone
    Mar 21, 2018 at 13:22
0

by knowing the address of a smart contract on the chain you can check it out on etherscan. Here's an example

1
  • i don't think you understood my query. Please correct me if i'm wrong but I think list on that page shows the transactions from other accounts to contract or just calling a function of contract and i can also get these by getTransaction() with a filter on to .
    – sp4c3
    Mar 21, 2018 at 12:52

Your Answer

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

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