I have a webapp and when I send a transaction I need to approve this tx by clicking "Accept" in Metamask. I would like to implement an automatic non-clickable confirmation. Is it possible? How? (Security is not important in this case)

1 Answer 1


Hi I am not quite sure I understand the question but I will try my best to answer it...

If you are talking about the confirmation prompt that you get when transacting using Metamask then there is no way of getting rid of it as that is how Metamask is coded. That has to do with the Metamask application and not your dapp.

If you still want to implement an automatic non-clickable response for users who send ether/tokens via other ways that do not involve Metamask... then you'll have to make use of events. Events will automatically detect when a user sends funds and can give them the response you'll have coded. *The response will also appear to those who sent funds via Metamask.

UPDATE : You cannot change metamask's behavior using code on a Dapp. Metamask is a third party in this case that has nothing to do with your dapp.

So... Is it possible to avoid this clickable operation with events? No.

  • My question is related to the part of events. For example, in pet-shop-tutorial, when someone wants to adopt a pet, it is necessary to confirm that you want to send this tx through Metamask to finish the operation. Is it possible to avoid this clickable operation with events? @YulePale Aug 28, 2018 at 15:36
  • @sapiensapiens I have updated the answer as per your comment
    – YulePale
    Aug 29, 2018 at 6:30
  • I think a dirty work-around, is avoid using Metamask and implement your own wallet, which can create new wallet address or import users' already-owned wallets with encrypted json/private key.
    – Richard Fu
    Aug 29, 2018 at 7:51
  • Is there any example of that? thanks @Richard Fu Sep 1, 2018 at 9:31
  • Not sure if it's a good example or not, but we are also developing an Unity wallet where Metamask doesn't supports, so we built one using Nethereum library, which provides all needed functions such as create wallet, send transaction, calling smart contract etc. I guess there's also a lot examples in the language you preferred.
    – Richard Fu
    Sep 6, 2018 at 6:26

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