I have initialised a dapp on the moralis dashboard and wish to start using it through node.js. Iām bootstrapping using the starter as given in the docs. The same code was working yesterday but fails to work today.
const Moralis = require("moralis/node")
let moralisServerUrl = "<REDACTED>"
let moralisAppId = "<REDACTED>"
let moralisMasterKey = "<REDACTED>"
const main = async () => {
await Moralis.start({ moralisServerUrl, moralisAppId, moralisMasterKey });
}
main()
Running $ node main.js
gives me the following error:
throw new Error('Web3Api.initialize failed: initialize with apiKey or serverUrl');
Am I starting the server incorrectly?