Transaction errors explained
A transaction can fail in two places: the node can refuse it before it reaches a block, or it can run on the chain and fail there. Find your error below: each row gives the message, where it stops and the fix in one line. Each page shows the messages you will see, the full fix and how it looks in a trace. Have a long error with JSON or a stack trace around it? Paste all of it into the error message decoder.
No match yet. Try a shorter part of the message, or paste the whole error into the decoder.
Nonce and replacement
The order of an account’s transactions: a counter that must be used once, in order.
| Message | Where it stops | Fix | Page |
|---|---|---|---|
nonce too low | Rejected before the chain | Let the client choose the next nonce instead of setting it yourself. | Nonce too low in Ethereum |
nonce too high | Rejected before the chain | Let the client read the nonce from the node, or send the missing nonces first. | Nonce too high |
replacement transaction underpriced | Rejected before the chain | Raise both fee fields by at least 10%, which is geth's default, or wait for the first transaction. | Replacement transaction underpriced |
WaitForTransactionReceiptTimeoutError | Waiting in the pool | Send the missing nonce, or replace the stuck transaction with higher fees. | Transaction stuck pending |
Dropped & Replaced | Replaced in the pool | Look up the replacing transaction: if you did not send it, find what did and resend what you still need. | Transaction dropped and replaced |
Gas, fees and funds
The node checks what the sender can pay before it accepts a transaction.
| Message | Where it stops | Fix | Page |
|---|---|---|---|
insufficient funds for gas * price + value | Rejected before the chain | Fund the account on that chain, send less, or lower the gas limit and fee cap you set. | Insufficient funds for gas * price + value |
gas required exceeds allowance | Rejected before the chain | Read the number: 0 means fund the account; a large one means the call never ends. | Gas required exceeds allowance |
max fee per gas less than block base fee | Rejected before the chain | Do not hardcode the fee: ask the client to estimate it, and leave room above the base fee. | Max fee per gas less than block base fee |
intrinsic gas too low | Rejected before the chain | Do not set the limit by hand: let the client estimate it. | Intrinsic gas too low |
Reverts and out of gas
The transaction ran on the chain and failed, and still cost gas.
| Message | Where it stops | Fix | Page |
|---|---|---|---|
execution reverted | Failed on the chain | Read the reason, then fix the input or the state. | Execution reverted |
out of gas | Failed on the chain | Raise the limit, or find out why the code uses so much. | Out of gas in Ethereum |
Missing the error you hit? Tell us which one, and we will add it: open an idea on GitHub.