Hello all,
Following my question https://forum.moralis.io/t/moralis-provider-white-screen/18224/5, I continued to play with Moralis, and now i am trying to build a dashboard that query on chain data (return value of view functions from contracts deployed on eth or goerli).
I did a first test and tried with useWeb3ExecuteFunction https://github.com/MoralisWeb3/react-moralis#useweb3executefunction. It was successful.
Now i would like to not have to connect my wallet to query data and i would these data to be updated in real time, to have these data on a frontpage. I saw differents way:
_ usemoralisweb3api
_ useapicontract
_ https://docs.moralis.io/reference/evm-api-overview
In react, useapicontract is the easiest way right ? I choose to go with this one.
I followed the example as in the github example:
but got the following error when i click on the button:
I am pretty sure it’s not something complex, i appreciate any help