Hello,
I am using react-moralis.
I am having trouble calling useWeb3ExecuteFunction when a wallet is not connected.
What i want to achieve is to query a smart contract, letâs say âtotal supplyâ which shouldnât need to have a wallet connected. Currently useWeb3ExecuteFunction is returning null for the data.
Any advice on how to do this?
Iâve tried useApiContract().
Which states ⌠âExecute a on-chain contractâs function. It calls Moralis API and doesnât require web3 to be enabled.â
Error: Web3Api not initialized, run Moralis.start() first
at Function.
Regards,
Daniel