Transaction Mining Time

Hi everyone,

Didn’t know where to put it, therefor MISC. Mods please move if inappropriate.
I am working with polygon Mumbai Testnet (Matic Testnet) and getting this response when trying to get a randomNumber from the ChainLinkVRFConsumerBase

Error: Transaction was not mined within 750 seconds, please make sure your transaction was properly sent. Be aware that it might still be mined!\n

up until now, the transaction has not been mined. who knows if it will ever be?

Anyone of you knows how to avoid this situation? sending more gas? where to specify how much gas and how to know how much gas is sufficient?

1 Like

Hey man, hope you are ok.

I guess you are using truffle right? That case you migth have to specify the gas fees on your truffle config.

https://docs.matic.network/docs/develop/network-details/network#mumbai-testnet

Truffle

In truffle configuration, example:

module.exports = {
    networks: {
        development: {
            host: "127.0.0.1",
            port: 8545,
            network_id: "*",
            gasPrice: 100000000000,
            gas: 6721975 // gas limit
        }
    }
};
  • gasPrice represents the price you willing to pay per gas unit to deploy the contracts you have under this Truffle project.

  • gas is the maximum number of gas unit the EVM can use to process the contract deployment transaction. If it’s too low, the transaction would fail, if it’s too high, the excess will be refunded but if the effective gas used is higher than the block gas limit, the transaction will fail.

Carlos Z

1 Like

Hi Carlos,

Thank you for the link, good find :slight_smile:
Yes I am good, still learning everyday as much as possible. I hope you are also doing good?

1 Like

Yep, im also learning a lot, is quite heavy to keep up with all the new stuffs that are comming into only ETH for example, defi protocols, contracts, l2 solutions… is too much some times, but im just loving it, cryptos is an entire world to always learn man :nerd_face:

Carlos Z

1 Like