Replies: 1 comment 3 replies
-
This error means your higher gas price is insufficient to bribe the miners to drop your old transaction and instead mine your new one. It could still possibly be making it in the transaction pool, especially if you are using a FallbackProvider, but you may need to increase your fees by more than 10%. I don’t know what the current rates are; I know at one point fees had to be doubled to get the default configurations for nodes to consider broadcasting your transaction. If you find information of current node defaults for broadcasting, please link them here. :) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Ethers Version
5.6.8
Search Terms
cancel transaction, replacement fee, max_priority_fee_per_gas, max_fee_per_gas
Describe the Problem
I am working on an application where I can send multiple transactions at once, but also cancel multiple transactions at once. When I try to cancel my transactions I get the error
Error: replacement fee too low
. I read that you need to change a few properties if you try to cancel a pending transaction. The properties I am changing are:nonce
: keep the same nonce as the pending transactiondata: 0x
- i don't want to call the same function, since this will speed up my transactionvalue: 0
- i set this value to zeromaxFeePerGas
: - i take the maxFeePerGas from the pending transaction and add 10% extra gas to this transactionmaxPriorityFeePerGas
: - i take the maxPriorityFeePerGas from the pending transaction and add 10% extra gas to this transactionI am using Blocknative to track the status of my transactions and my transactions go from
pending
>cancel
>failed
which is the correct workflow. The issue I am facing is that I keep getting theError: replacement fee too low
in my terminal.Status changed to
cancel
, but still receive this error:Does anyone know how I can get rid of this error in the terminal?
If you need more code snippets, please let me know! :)
Code Snippet
Contract ABI
No response
Errors
`Error: replacement fee too low`
Environment
Ethereum (mainnet/ropsten/rinkeby/goerli), node.js (v12 or newer)
Environment (Other)
TypeScript Electron application
Beta Was this translation helpful? Give feedback.
All reactions