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!

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.

1 Like