Web3: intrinsic gas too low
The gas limit on the transaction is below the minimum the EVM charges before executing any contract code: 21,000 for a plain transfer plus a per-byte cost for calldata.
Quick fix
Read the commands before running them. Anything that restarts a service, deletes data or changes permissions should be tried on a non-production system first.
// Estimate rather than hard-coding
const gas = await provider.estimateGas(tx);
tx.gasLimit = gas * 120n / 100n; // 20% headroom
# From the CLI
cast estimate <to> 'transfer(address,uint256)' <addr> <amount>
# Note: estimateGas simulates against the current state. If the
# transaction's cost depends on state that changes before it is mined,
# the estimate can be too low, hence the headroom.
How to diagnose Web3 errors
Web3 errors are unusually terse because the EVM reports failure without explanation by default. execution reverted means a require or revert triggered. The reason string is present in the return data but most libraries discard it. Nonce errors reflect the strict sequential ordering of transactions per account, so a stuck transaction blocks every one behind it.
If the quick fix above does not resolve it, work through these steps. They apply to this whole class of error, not just to this one message, which is usually what saves the time.
- Simulate before sending:
eth_callagainst the same block returns the revert reason string that a submitted transaction hides. - Use a transaction tracer (Tenderly, Foundry's
cast run, or a node'sdebug_traceTransaction) to see the exact opcode and contract where execution reverted. - For nonce errors, query the account's pending nonce (
eth_getTransactionCountwith thependingtag) rather than tracking it locally. - To replace a stuck transaction, resend with the same nonce and a materially higher gas price: most nodes require at least a 10% increase.
- Check the chain ID matches the network you intend. Signing for the wrong chain produces confusing rejection messages.
Tools worth reaching for
cast (Foundry)eth_call simulationTenderly / block explorer tracerdebug_traceTransaction
Authoritative references
Primary documentation for this error, worth reading before applying any fix in production.
Related Web3 errors
- Web3: execution revertedThe smart contract reverted. Solidity custom errors or revert strings often explain the exact…
- Web3: gas required exceeds allowance (0)The node simulated the transaction and found the sender cannot cover it, so the allowance it…
- Web3: insufficient funds for gas * price + valueThe wallet lacks enough native token to pay transaction value plus gas. This is separate from…
- Web3: max fee per gas less than block base feeThe node rejected the transaction because its maxFeePerGas is below the base fee of the next…
- Web3: missing revert data in call exception (CALL_EXCEPTION)The call failed without a reason string, which usually means there is no contract at that…
- Web3: nonce too low / replacement transaction underpricedThe transaction nonce has already been mined, or a replacement transaction did not increase…
Browse other categories
- HTTP 494xx client errors, 5xx server errors, redirects, headers and protocol problems.
- JavaScript 42npm resolution, async pitfalls, hydration, memory limits and runtime type…
- Database 41Connections, deadlocks, constraints, replication and memory limits.
- AI 35Rate limits, context windows, GPU memory and model-serving failures.
- Network 35Refused connections, timeouts, resets, MTU problems and port exhaustion.
- Python 35Imports, virtual environments, encoding, concurrency and dependency conflicts.
- Kubernetes 34CrashLoopBackOff, ImagePullBackOff, OOMKilled, RBAC, scheduling and storage.
- Docker 27Daemon connectivity, disk space, image pulls, ports and architecture mismatches.
- System 26Disk space, systemd units, file descriptors, OOM killer and scheduled jobs.
- Cloud 25IAM permissions, quotas, service limits and credential failures.
- Security 25JWT validation, CSRF, OAuth grants, SELinux, SSH host keys and CSP.
- TLS 24Untrusted authorities, expiry, hostname mismatch, chains and cipher negotiation.
Something missing or wrong?
This entry is maintained by hand. If the fix is out of date, incomplete, or you have a better one, email a correction and it will be reviewed.