Intercepting Metamask ETH/other chain transaction after signing, before being sent
- Dominant language
- TypeScript
- Stars
- 853
- Forks
- 662
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 8
Description
Hi,
I am working on a Metamask Snap in which I need to intercept a transaction prior to being send.
- sign the transaction
- intercept and do some things here
- send the transaction
For ETH, for the signing part based on the Metamask documentation I could use one of the signing data methods https://docs.metamask.io/guide/signing-data.html#signing-data however, I am a bit confuse on the possibility of supporting for sending the transaction the ETH RPC method **_eth_sendRawTransaction_**
I know currently Metamask supports _eth_sendTransaction_ however that wouldn't help my use case and that there is an already closed similar topic https://github.com/MetaMask/metamask-extension/issues/3475 however without any result.
I would appreciate if you could please advice if and how a use case as described above (intercepting a transaction before being sent but after signing it) could/would be possible to work ? Thank you
Contributor guide
Research direction
Review the MetaMask signing data documentation and the prior MetaMask extension issue #3475. Check whether Snaps can intercept a signed transaction and whether eth_sendRawTransaction is supported alongside eth_sendTransaction; done means documenting a confirmed supported path or the missing capability.
Written by the indexing model from the issue text.
Assessment
- Domain
- api, blockchain
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100