Allowing reads without users needing to connect a wallet #70
Answered
by
tmm
kevinhalliday
asked this question in
Q&A
-
Excited about this library. Loving the hooks/docs/typescript support - super helpful for those of us onboarding to dapp development. Thanks! Wondering what the best flow is allowing read only connections to some alchemy/infura by default, without a user needing to connect their wallet? |
Beta Was this translation helpful? Give feedback.
Answered by
tmm
Jan 13, 2022
Replies: 1 comment 3 replies
-
You can configure a global ethers.js Provider and access it with the |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
tmm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can configure a global ethers.js Provider and access it with the
useProvider
hook. This works even if an account is not connected.