Also, If I ignore the type I error I get an error: āTypeError: Cannot set property Request of # which has only a getterā on the same line at runtime. Not really sure what Iām doing wrong. Iām using "moralis-v1": "^1.11.0"
Iām fine with them needing Metamask, but wouldnāt setting the RPC url make it so that their Metamask uses that RPC Url?
I donāt think that this is possible. You will have to tell MetaMask to use your RPC url and I donāt know if that is even possible. You could try to add a new network to MetaMask or to ask the users to add a new RPC url in case that they have issues
Ah man really? That is really unfortunate but there must be a better way since many apps depend on reading from the blockchain regularly
You can call read only function on blockchain directly with our api. For sending transactions on chain you will need a wallet like MetaMask
That sounds good, since the bulk of our transactions are read only. Could you point me in the right direction for configuring these read only calls with React Moralis? Currently Iām using useWeb3Contract
from react-moralis
for all my reads
It is called runContractFunction in vanilla js. In react Moralis I donāt know exactly the name
Iām not sure if this works for my desired testnet, Arbitrum Goerlli. When I go to create a server in the Moralis admin console it is not an option.
Maybe, you can try it, it has to call runContractFunction on the server instead of using MetaMask