How to enable useContractRead to read read-only function without wallet connected? #730
Unanswered
martindavid
asked this question in
Q&A
Replies: 1 comment
-
You don't need to pass in a provider or signer to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
First of all, thanks for this great library which has simplified my code to connect with smart contract.
I have a use case which I need to fetch data from smart contract (from the read-only function) without user need to connect a wallet first. I read from have been googling around, that I can use an Ether provider like Infura/Alchemy directly.
I saw in the several past PR,
useContractRead
used to be able to acceptproviderOrSigner
as a config, but now it no longer there. I wonder, for my use case, how can I read data from smart contract withuseContractRead
without need to connect to the wallet first?Beta Was this translation helpful? Give feedback.
All reactions