Hello, I’ve tried to use the Moralis with the local hardhat newtwork, but there is an error.
const Moralis = require("moralis").default;
Preformatted textconst { MORALIS_API_KEY } = process.env;
const moralisConfig = {
SERVER_: 'http://localhost:8545',
appId: MORALIS_API_KEY
};
await Moralis.start(moralisConfig);
const response = await Moralis.EvmApi.transaction.getTransaction({
chain: CHAIN_ID,
transactionHash: deployment_tx_hash
});
I’ve tried with serveral ways using serverURL, server and serverUrl, but the error is still remain.
How to solve this problem?