Hi,
Could anyone advise on how to make a basic web3 call with moralis react? I am using runContractFunction and it appears that the documentation is incorrect. In the example cited here:
https://docs.moralis.io/moralis-dapp/web3-api/native#runcontractfunction
If I click on the React tab and have my working app running, it appears that the function is triggered by using useMoralisWeb3ApiCall
– however this is not exported or imported anywhere
Also I am getting lots of typescript errors where it is complaining that for the chain
parameter in the options (I specified “eth” as in the example): I am getting
Type 'string' is not assignable to type '"0x61" | "bsc testnet" | "eth" | "0x1" | "ropsten" | "0x3" | "rinkeby" | "0x4" | "goerli" | "0x5" | "kovan" | "0x2a" | "polygon" | "0x89" | "mumbai" | "0x13881" | "bsc" | "0x38" | ... 6 more ... | undefined'.
Has anybody here gotten these examples to work?