[WIP] Use infura hosted provider if web3 is not available #61
Reference in New Issue
Block a user
Delete Branch "feature/infura-fallback-provider"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If the user does not have metamask or similar (no web3 provider is
availale) we will load data from the infura node.
No signer is available for the infura node but the ethers provider would
throw an error if we try to access it - so this moves the decision of
choosing the provider to the ethProvider function.
not sure if I like using the infura provider - at least not how this PR uses it - because that would make it impossible to run kredits-web WITHOUT metamask on a local network.
we don't use the specific infura host but the general JSONRPC interface
Pull request closed