2

SC: 0x3c445903aCa6c4d1B55357Fb9F8e22252899478A

I simply try to mint() on Polygon Mumbai but I had to workaround "replacement transaction underpriced", I still can't see any pending/unmined Tx..nor do I see a Nonce issue

I fixed it by increasing gasPrice to 50 gwei but:

  1. Could help me understand where was the unmined/pending Tx that was blocking? I could see nothing on the Dashboard nor on PolygonScan
  2. I used to be able to send my Tx without setting up the gas attribute, why is it necessary now?

this is my code: enter image description here

PS: 27256 didn't help as it just shows how to fix by trial and error imo

Thanks a lot for your help!

1 Answer 1

1

Polygon's Bor client (currently a modification of Geth) uses the same default value setting for replacement transactions that you can view here.

What this means any Polygon node running in the default setting has the priceBump value set to 10. This in turn means that to replace a pending transaction you must submit a new one with the same transaction nonce but the fee that is higher than 10% than the pending one. If you submit with the same fee or the fee increase is lower than 10%, the node that you are using to send your transaction will reject the transaction with the "replacement transaction underpriced" error.

There are node providers that allow for custom settings, including the priceBump node setting. e.g. Chainstack.

As to why you didn't see your pending transaction on polygonscan it might be because your transaction didn't enter the mempool of polygonscan nodes.

If curious, you may want to read and explore all the EVM mempool stuff here.

1
  • 1
    Hi @Ake, thanks for your answer, nevertheless I didn't see the Tx in Alchemy mempool either so where was it? Also, why isn't there a function to take care about this priceBump automatically? as I only see ways to fix it manually whereas now I would need to code specific logic in case of that type of error
    – ibox
    Aug 2, 2022 at 9:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.