0

I'm trying to develop a React Native App that is able to connect directly to metamask(similar to OpenSea). I've figured out that i need to use a deeplink to open MetaMask, and it works, but what parameters would i need to pass in said DeepLink to make it connect to my DApp? I saw some people saying it was my App URL, but i'm still in testing and didn't really understand how that would work. Does the redirect to the MetaMask app return the address? I just wanted a similiar implementation to OpenSea. Has anyone been able to accomplish this? Thank you in advance

3
  • You could use the WalletConnect protocol. It is supported by several wallets, metamask, trust wallet, etc.
    – Ismael
    Commented Mar 29, 2022 at 4:52
  • I know that's an option, but WalletConnect uses too many wallets, don't want to expose my App to so many vulnerabilities
    – LN0512
    Commented Mar 30, 2022 at 14:34
  • @LN0512 did you managed to find any alternatives?
    – nithinpp
    Commented Nov 10, 2022 at 6:17

2 Answers 2

0

https://www.npmjs.com/package/@walletconnect/react-native-dapp

Use this npm module to connect dapp services.

1
  • I ended up using wallet connect to manage the external wallet connections!
    – LN0512
    Commented Nov 11, 2022 at 16:01
0

use @metamask/sdk !

https://metamask.io/sdk/

this will help you

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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