Love moralis products but the confusion is real for me. At the moment this is my setup.
- NextJS app
- Parse self hosted Server
I have authentication setup and running smoothly. The issue I am having is I am using react-moralis and I cannot get the useApiContract hook to work for runContractFunction.
After reading similar help threads about this topic on here and trying to debug my issue I have some more information to add:
Using swaggerUI I was able to get a successful runContractFunction call to my contract so I know the ABI format, chainID, contract address, etc, etc, are all correct on my front.
Meanwhile in my NextJS app I keep getting this response message from the parseServer in regards to the runContractFunction hook:
{“code”:141,“error”:"{“message”:“Cannot read properties of undefined (reading ‘inputs’), Function undefined
not found in ABI, function_name should not be empty”}"}
So my question is as follows. If you are self-hosting your own parse server do you have to use EvmAPI now in my react client instead of react-moralis? It seems react-moralis does not work with a self-hosted server. I spent over an hour trying to get a simple totalSupply view function call from react-moralis which in the past worked the first time I wrote the code.
Am I to assume if you self-host your own moralis server that react-moralis is not going to work?