Use with a React Native Wallet? #1676
Replies: 2 comments
-
|
Wagmi's recent versions are tricky with React Native as its a focus area as far as I know. If you have the private key in-memory and not using external wallets to connect, then it's best to use ethers functions for all your needs. For RPC connections, if you using Alchemy as provider, their SDK works pretty well as well. |
Beta Was this translation helpful? Give feedback.
-
|
Any updates on how you are going about this? @bricestacey Naively is seems like the write functions should work if you use a signer instantiated with the private key but I haven't tried it out yet Interested to know if you tried this before I get into trying it out? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I like the wagmi API. The React hooks are easy to work with and handle my use cases.
However, I am trying to integrate it directly into a React Native wallet. Are there any community connectors that integrate with something like Ethers? Specifically, I have a private key in-memory with ethers.
I have tried adapting the MockConnector with a JsonRpcProvider.
useConnecthooks and whatnot work for reading the account. I can callconnectand get the address. But when I try to use theuseContractWritehooks, it says there is no provider. Can anyone point me in the right direction?Beta Was this translation helpful? Give feedback.
All reactions