How to fix bridge transaction estimateGas reverts
seo_title: Execution reverted on estimateGas: fix bridge calls
Tokenbearing Editorial5 min read#0c0e84

seo_title: Execution reverted on estimateGas: fix bridge calls
dek: Execution reverted on estimateGas when sending a bridge transaction means the simulated call would fail; trace the request, decode the revert, then refresh or correct it.
Why does estimateGas return execution reverted for a bridge transaction? The node simulated the call against current state and found it would fail. Start with the exact transaction request, check its sender, balances, allowance and value, then decode any revert data and refresh a stale quote. A successful estimate means the request simulated without that revert at the state used.
Start with the sender, balance, allowance and value
A bridge transaction most often reverts during estimation because its sender cannot satisfy the request’s token or native-asset requirements. Compare the request’s from, to, data and value with the wallet and quote you intend to use. An incorrect sender can change both the available balance and the allowance seen by the contract.
For an ERC-20 transfer, the wallet needs enough tokens for the amount the call will use and an ERC-20 allowance for the contract that will spend them. If you just submitted an approval, it must be mined before a call simulated against the latest block can use it. Wait for confirmation, then request or estimate the bridge transaction again.
Native assets can be required for a fee even when the bridged asset is an ERC-20 token. The quoted transaction’s value carries native currency into the call; leaving it out can make the simulated call fail. Use the quote’s value exactly, and make sure the sender has enough native balance for that value and the transaction’s gas cost.
Keep the quoted request and quote current
A bridge request can revert when its fields differ from the quote or its route conditions have changed. Copy to, data and value exactly from the quote’s transaction request, and send from the quoted from address. Do not rebuild the calldata from displayed token amounts: the request encodes the contract call and its parameters.
Jumper bridge is a cross-chain bridge aggregator that finds routes through supported bridges and swaps to transfer assets between networks. When you are checking which transaction request to pass into your wallet call, Jumper bridge transaction details can help you follow the quoted route and its request fields.
A quote can also become stale between route selection and estimation. Its deadline may have passed, or the route’s minimum output may no longer be met as pool state or prices change. Fetch a fresh quote and estimate the newly returned request; do not reuse old calldata after refreshing the route.
Decode the revert data to identify the failing check
Revert data can name the contract condition that rejected the call. The JSON-RPC error may include revert bytes in its data field; extract those bytes and inspect the first four-byte selector. The selector 0x08c379a0 identifies Solidity’s Error(string) form, which carries a text reason. Decode the remaining payload as the ABI-encoded string.
The selector 0x4e487b71 identifies Panic(uint256); decode its integer argument and use it to locate the failed Solidity panic condition. Other selectors may identify custom errors. Match the selector and encoded arguments against the ABI for the contract that reverted. For a routed transaction, the failing contract may be an intermediate bridge or swap contract, so inspect the relevant ABIs in the route.
eth_estimateGas simulates execution and returns a gas estimate when the call succeeds. By default, it uses the latest block’s state. That means the result reflects the allowance, balances and contract state available at that block. After correcting the identified condition, repeat the estimate with the same transaction fields and state context. If the error has no useful data, trace the call through the route’s contracts to find where execution stops.
Contact the bridge or integration support team when a fresh quote, confirmed approval, correct sender and sufficient balances still produce an unexplained revert. Include the chain, quote or route identifier, transaction request fields, block context, and full RPC error data. Those details let support identify the contract and condition involved.
- Use the quote’s exact sender, destination, calldata and value.
- Wait for an approval to be mined and fund the sender for tokens and native value.
- Refresh expired quotes or routes whose minimum output is no longer met.
- Decode the selector and arguments against the relevant contract ABI.
Related estimation questions
How much buffer should be added to a gas estimate?
There is no fixed buffer that fits every bridge route. Use the estimate as the baseline and choose a margin based on the route’s execution variability and the wallet or provider’s limits. A buffer affects the gas limit; it does not repair a call that reverts during simulation.
Can estimateGas run against a pending approval?
Usually, an estimate against the latest block cannot see an approval that is still pending. Wait until the approval is mined before estimating the bridge call. Some clients support pending-state simulation, but availability depends on the RPC provider.
Why does a call that estimated fine still revert on-chain?
The estimate simulated the call against a particular state, while the transaction executes later against state that may have changed. A balance, allowance, route condition, deadline or minimum output can differ by then. The estimate is evidence about that simulation, not a guarantee of later execution.
How do I simulate a bridge call with a state override?
Use an RPC client that supports state overrides for eth_estimateGas or a call-tracing method, then provide the override in that client’s expected format. This can model a balance or storage change for diagnosis. The override changes the simulated state only; it does not update chain state or make an unmined approval real.