How to access the MetaMask directly to send a transaction from Safe App that does not require multisig functionality?
See original GitHub issue➡️ Premise
Gnosis Safe is a solid piece of engineering.
We are using it as a base for our admin panel - we are building a few custom Safe Apps.
Some functions are high risk (minting new coins) some functions are routine (whitelisting an user).
➡️ What are we trying to do
We would like to allow low-risk function to bypass Gnosis Safe multisig functionality and use the MetaMask directly.
(for simplicity can assume we always use MetaMask)
We could ask for MetaMask access from the level of Safe App.
BUT
It would be better UX to minimize the number of popups.
➡️ Maybe there is a better way?
Can you please guide me is there a way to access the the MetaMask and send non-invasive transaction (such as whitelisting) without going through the hoops of multiple confirmations?
Or maybe asking for access to MetaMask (additional popup) from the context of Safe App is not a big deal (minor inconvenience) and I should just go for it?
I don’t want to mess to much with the codebase, simply because I would like to pull the updates to safe-react
in the future.
➡️ Why we will stick to Gnosis Safe?
- Multisig functionality is best in the class
- Sleek user experience
- Some apps are already developed
Photograph: MR.Cole_Photographer/Getty Images
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
You just access
ethereum
property onwindow
object: https://docs.metamask.io/guide/ethereum-provider.html#ethereum-provider-api We don’t have a mechanism for exposing user’s providerIt is for our private company use.
OK then… Can you point me in right direction? How to access the
wallet provider object
? I still need to wrap my head around the codebase… 😇