I’m trying to connect an electron/react dapp to a testnet using Infura . But I’m having a hard time trying to achieve that because I think the docs are not enough clear for my level. Also all the tutorials that I have found they use metamask as a web3provider. In my dapp I can’t use metamask so I will love to connect to my smartcontract using only Infura and web3. Is this possible? May you be kind to show me some code where that is achieved?
I cannot use metamask because my dapp is projected to run in an based electron standalone program. Since electron runs in a chromiun environment, there is not way to install the Metamask extension in that conditions.
You can try https://github.com/ethers-io/ethers.js/ for wallet functionality, but not sure that provides react components. If that doesn’t work, I suggest asking around amongst other Chromium devs.
I pretty sure that must exist a solution with infura+web3 to communicate with smart contracts.
Perhaps somebody know how connects this in a react component.