Polygon – Polygon Mumbai Testnet Not Working Issue Solutions

hardhatpolygontestnetstruffle

I'm trying to deploy a contract to the Polygon Mumbai testnet and transactions just don't get processed, even after more than two days.

I've tried setting higher gas amounts. I've also tried both Truffle and Hardhat and many different RPC URLs and nothings works, the transactions don't even show up as pending in the block explorer.

I don't get any error response, it just times out. As a comparison I deployed the exact same contract to the Goerli testnet and Avalanche Fuji testnet with no issues at all.

My Hardhat network config looks like this:

mumbai: {
  url: `https://polygon-mumbai.g.alchemy.com/v2/${process.env.ALCHEMY_API_KEY}`,
  chainId: 80001,
},
goerli: {
  url: `https://eth-goerli.g.alchemy.com/v2/${process.env.ALCHEMY_API_KEY}`,
  chainId: 5,
},
fuji: {
  url: `https://api.avax-test.network/ext/bc/C/rpc`,
  chainId: 43113,
},

Any help with debugging this would be much appreciated.

Best Answer

The issue can be Linked to either :

1- the RPC url

2- the provider

3- THE WALLET ADDRESS, this has happened to me on the mumbai testnet alot and to solve it, i switched the wallet address to a brand new one, made only for deployments. and used another wallet address for contract interaction, because it seems that on mumbai the wallet address has a certain type of quota on calls/deployments basically blockchain interactions

Related Topic