Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

240
Views
Minting with Moralis.executeFunction on Node won’t work

I have written the code below to mint NFTs using Moralis.executeFunction, but I am getting the error below.

C:\DriveD\Projects\object-to-NFT\node_modules\@ethersproject\logger\lib\index.js:233
        var error = new Error(message);
                    ^
Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.6.0)
  reason: 'could not detect network',
  code: 'NETWORK_ERROR',
  event: 'noNetwork'

Here is my code.

 const mintAndGo = async () => {
   // setUploading(true);
   
   await Moralis.start({
    moralisSecret: process.env.MORALIS_SECRET
  });

      await Moralis.enableWeb3({
      chainId: 0x4,  //for Rinkeby
      privateKey: process.env.RINKEBY_PRIVATE_KEY,
    })
   
    const minter = await Moralis.executeFunction({
      functionName: "mint",
      abi,
      contractAddress: "0xCdA50367a485eF74a43E2614A44aDFB47FC7E093",
      params: {
        cid,
        data: []
      }
    })

    console.log("Minter", minter)
  }

I just followed the samples that I found on the internet but I don't know why it keeps complaining that it cannot find the network. Any clues?

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!