Is it possible to trigger a Snap when a eth_sendTransaction request occurs?

I am interested in creating a Snap that gets triggered when a user creates a new transaction and reads the “to” address. I checked the docs and I don’t see how it can be done.

From my understanding of Snaps, they are meant to be Metamaks extensions, so in theory, this should be possible to do. Could someone point me in the right direction?

Thank you in advance!

1 Like

Hello @gtupak, welcome to MetaMask community!

Check MetaMask’s github repository and the MetaMask docs below, for more information and possible solutions for what you are trying to acchieve.

1 Like

Hi @gtupak, this feature is coming soon.


I already checked and nothing of sorts seems to exist

That’s good to hear! Do you have any estimate on when that would happen? :slight_smile:

Sometime later this year most likely. You can track this issue to see when it gets implemented:

1 Like