Hi, i am setting up the streams for the first time, i watched the video and copied everything from it but get this error.
MoralisError [Moralis SDK Core Error]: [C0015] Key "defaultEvmApiChain" is already registered
Here is the code
const Moralis = require("moralis").default;
const Chains = require("@moralisweb3/common-evm-utils");
const EvmChain = Chains.EvmChain;
const ABI = require("./abi.json");
require("dotenv").config();
const options = {
chains: [EvmChain.ETHEREUM],
description: "USDC",
tag: "usdcTransfers",
includeContractLogs: true,
abi: ABI,
topic0: ["Transfer(address,address,uint256)"],
webhookUrl: "",
};
Moralis.start({
apiKey: process.env.MORALIS_KEY,
}).then(async () => {
const stream = await Moralis.Streams.add(options);
const { id } = stream.toJSON();
await Moralis.Streams.addAddress({
id: id,
address: ["0x10affebaa3a5f28ab502fa73488070b73f0428e3"]
})
})