0

I am working with ethereum and I have a doubt. In a real case, can a user interact directly with a smart contract? Are there no dangers? For example: a user wants to book a trip. What happens in these cases? Does the transaction start from the user or is there an intermediate component that collects the data and transmits it (via transactions) to the smart contract?

6
  • the User sends the transaction directly to the contract (sort of), but there are dangers. Someone could trick your user to send an input to the contract that would make some kind of undesired action, like stealing tokens.
    – Nulik
    Feb 4, 2021 at 16:46
  • or there could be an Approval hack like this one: medium.com/dedaub/…
    – Nulik
    Feb 4, 2021 at 16:47
  • TLDR, there are many dangers!
    – Nulik
    Feb 4, 2021 at 16:48
  • @Nulik so how can they be avoided? If a metamask or alternatively (web3.js + geth / parity) how do I prevent these attacks?
    – Mario Roma
    Feb 4, 2021 at 16:57
  • you can't avoid it, someone will be hacked eventually. It is about following security guidelines on the User side. It is not a developer's problem.
    – Nulik
    Feb 4, 2021 at 19:06

0

Your Answer

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