const Moralis = require(âmoralis/nodeâ);
const moralisServer = async () => {
await Moralis.start({ serverUrl, appId, masterKey });
logger.info(âMoralis connectedâ);
};
It works perfectly with the read functions like âsymbolâ (Moralis.Web3API.native.runContractFunction). But doesnât work with any functions where I use Moralis.executeFunction.
And this code doesnât work with read functions. and gives that error.
const Moralis = require(âmoralis/nodeâ);
const moralisServer = async () => {
await Moralis.start({ moralisSecret });
await Moralis.enableWeb3({
privateKey: process.env.PRIVATE_KEY2,
});
}