Transaction errors explained

View as MarkdownOpen in ClaudeOpen in ChatGPT

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.

A transaction's path: the wallet sends it to a node, the node checks it, it enters the mempool and a block includes it. Errors in the first check (nonce too low, fee cap below the base fee, insufficient funds, intrinsic gas too low, replacement underpriced) stop it before the chain and give no hash. Errors after inclusion (out of gas, execution reverted) give a hash and a receipt with status reverted.A transaction's path: the wallet sends it to a node, the node checks it, it enters the mempool and a block includes it. Errors in the first check (nonce too low, fee cap below the base fee, insufficient funds, intrinsic gas too low, replacement underpriced) stop it before the chain and give no hash. Errors after inclusion (out of gas, execution reverted) give a hash and a receipt with status reverted.
The first group stops at the node. The second group costs gas.

Nonce and replacement

The order of an account’s transactions: a counter that must be used once, in order.

MessageWhere it stopsFixPage
nonce too lowRejected before the chainLet the client choose the next nonce instead of setting it yourself.Nonce too low in Ethereum
nonce too highRejected before the chainLet the client read the nonce from the node, or send the missing nonces first.Nonce too high
replacement transaction underpricedRejected before the chainRaise both fee fields by at least 10%, which is geth's default, or wait for the first transaction.Replacement transaction underpriced
WaitForTransactionReceiptTimeoutErrorWaiting in the poolSend the missing nonce, or replace the stuck transaction with higher fees.Transaction stuck pending
Dropped & ReplacedReplaced in the poolLook 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.

MessageWhere it stopsFixPage
insufficient funds for gas * price + valueRejected before the chainFund 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 allowanceRejected before the chainRead 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 feeRejected before the chainDo 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 lowRejected before the chainDo 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.

MessageWhere it stopsFixPage
execution revertedFailed on the chainRead the reason, then fix the input or the state.Execution reverted
out of gasFailed on the chainRaise 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.

Type to search the docs, Learn topics and the blog.