Ethereum transaction underpriced

This replacement price is not specified in the protocol. Here is a code fragment of the code I use to send the transaction to Rinkeby (or whatever network I'm testing on timateGas( from: publicAddr, gasPrice:, gas: 1500000).then(function(estimatedGas) if (estimatedGas 0) throw new Error The estimated gas for the transaction is zero. Determining the Minimum, if you have the hash of the pending transaction, you can determine the required gas price with something like: replacement_price sPrice *.101, note that this is floating point math, which will have rounding. You may need to track this internally, rather than relying on tTransactionCount. This will not play well with other processes connected to your Ethereum client, and try to replace them). "Returned error: replacement transaction underpriced the error means that: You have a pending transaction from your account in your Ethereum client.

I am using the exact amount for estimated gas in my transaction send call returned to me by the estimateGas call. I'm getting intermittent "replacement transaction underpriced" errors on the Rinkeby network on the server side of my Node. With geth, the replacement transaction must have a gas price greater than check bitcoin wallet 10 of the gas price of the pending transaction. GasLimit: estimatedGas, / Adding both gas and gasLimit just in case. Gn(privateKeyBuffer let serializedTx '0x' String hex return). Having said that, I am beginning to wonder if Metamask does not return control to you until the transaction has been mined. Do you want to: Send a new transaction, after all your previous transactions have completed,. Your Ethereum client will automatically manage the nonce for you.

SPrice may vary over time, and/or you might have set any arbitrary gas price on the pending transaction. Summary : Remove the nonce field, this answer assumes that you want to issue a new transaction, rather than replace a pending one. Replace a Pending Transaction, the 10 Minumum.

Transaction underpriced error message Issue #14838

The new transaction you are sending has the same nonce as that pending transaction. Since your goal is to replace a transaction that is pending, you must try to convince the miners to use your new transaction. const rawTx nonce: fromNonce, gasPrice: gasPriceGwei, / Use the estimated ethereum transaction underpriced gas. Is that the case?

Does anyone know how to fix ethereum transaction underpriced this? What does the error mean?

Message, you cant perform that action at this time. I have another reason that I need to specify the nonce field. Then increment it by one every time you issue a new transaction.

Gas: estimatedGas, to: contractAddr, value: '0x00 data: encodedAbiForCall let tx new Tx(rawTx / Sign the transaction using our server private key in Buffer format. This may not be 10 higher than the pending transaction's gas price.


We're No.1 manufacturer in the field of the Electric Wire and Cable in Laos. Its quality has been recognized by both the public and the private sectors for more than 20 years, and manufacturing facilities are certified to the ISO 9001 quality standard.

Contact Us

Opening Hours

Monday 08:00 - 17:00
Tuesday 08:00 - 17:00
Wednesday 08:00 - 17:00
Thursday 08:00 - 17:00
Friday 08:00 - 17:00
Saturday 08:00 - 17:00
Template Settings


For each color, the params below will give default values
Orange Green Red Cyan Blue


Background Color
Text Color


Background Color


Select menu
Google Font
Body Font-size
Body Font-family