loomprotocol.xyz

Trust Wallet transaction failed out of gas: what to adjust and resubmit

When a Trust Wallet transaction fails with an "out of gas" error, it means the network fee you set was too low for the amount of computational work the transaction required. The fix is to resubmit the transaction with a higher gas limit, not a higher gas price. This page explains how to identify the right gas limit, adjust it, and resend the transaction without losing your funds.

Understanding the "out of gas" error

Every transaction on Ethereum or compatible networks requires a gas limit - the maximum amount of gas you're willing to pay for the transaction to execute. If the actual gas needed exceeds the limit you set, the transaction fails. You still pay the network fee for the failed attempt. The "out of gas" message specifically means the limit was too low, not that the network was congested or that you underpaid the gas price.

Common causes include: - Sending to a smart contract (like a DEX or token contract) that requires more computation than a simple transfer - Using a default gas limit that is too low for complex transactions - Interacting with a contract that has recently been updated or is heavily loaded

How to adjust and resubmit

Steps may vary slightly depending on your Trust Wallet version and the network you are using. These instructions assume you are on an EVM-compatible chain (Ethereum, BNB Smart Chain, Polygon, etc.).

Step 1: Check the failed transaction details

Open Trust Wallet and tap History or Transactions. Find the failed transaction. Tap on it to see the error reason - it should say "out of gas" or "gas limit exceeded." Note the gas limit you originally set (for example, 21,000 for a simple ETH transfer, or 200,000 for a swap).

Step 2: Increase the gas limit

You need to set a higher gas limit. There is no universal "correct" number - it depends on the contract. Here are practical guidelines:

To adjust in Trust Wallet: 1. Start a new transaction for the same action (send, swap, approve). 2. Before confirming, tap the gear icon or advanced settings next to the network fee. 3. Look for Gas Limit (not Gas Price or Priority Fee). Change the number. Do not lower it below the default shown. 4. Set a reasonable upper bound. If the default is 210,000 and the error says "out of gas," try 300,000 or 400,000. Avoid setting absurdly high limits (e.g., 10,000,000) unless you are certain - this can lock up your funds temporarily.

Step 3: Set the gas price and priority fee correctly

After adjusting the limit, also check the gas price (or max base fee and priority fee). Trust Wallet often auto-suggests a fee based on current network conditions. If the transaction failed because the network was busy, the gas price might have been too low, but the error message would typically say "reverted" or "replacement transaction underpriced," not "out of gas." For out-of-gas errors, focus on the limit. However, setting a reasonable gas price ensures the transaction is picked up quickly. Use the "Fast" or "Average" preset unless you have a reason to choose "Slow."

Step 4: Resubmit the transaction

Once you have adjusted the gas limit (and optionally the gas price), confirm the new transaction. Trust Wallet will deduct the fee from your balance. The transaction should now process. If it fails again with the same error, increase the gas limit further.

Step 5: If it still fails

If you have tried several reasonable gas limit increases (e.g., from 100,000 to 500,000) and the transaction keeps failing with "out of gas," the problem may not be the limit. Possible other causes: - The contract may require a specific input or be paused - Your wallet may have insufficient funds for the fee - The token contract may have a transfer fee or burn mechanism that increases gas consumption

In that case, cancel the pending transaction (if it is still stuck) by sending a zero-value transaction with a higher nonce - or simply wait for it to expire. Then research the specific contract using a block explorer.

Important notes

Summary

"Out of gas" means the gas limit was too low. Resubmit the same transaction with a higher gas limit (e.g., double the default or use 300,000 for swaps). Keep the gas price reasonable. If it fails repeatedly, check the contract's requirements on a block explorer. Never guess wildly - use data from similar transactions.

Not financial advice. loomprotocol.xyz publishes market data and general information about digital assets. Crypto assets are volatile and you can lose everything you put in. Nothing here is a recommendation to buy, sell or hold, and we make no price predictions.

Prices are sourced from third parties and may be delayed or wrong. Verify anything you intend to act on against a primary source.

Back to trust wallet