> For the complete documentation index, see [llms.txt](https://support.ellipal.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.ellipal.com/docs/troubleshooting-and-support/why-did-my-transaction-fail-with-an-out-of-gas-error.md).

# Why did my transaction fail with an “Out of Gas” error?

{% hint style="info" %}
"EVM is the core computation engine for Ethereum and other Ethereum-compatible blockchains. It is responsible for processing smart contracts and transactions. "
{% endhint %}

<img src="https://wdcdn.qpic.cn/MTY4ODg1ODE1ODUzMDQ5MQ_231140_nylkFroHxF558Xkt_1728548916?w=1231&#x26;h=610&#x26;type=image/png" alt="" height="299.665" width="604.733">

This typically happens with smart contracts or token transfers (like ERC20 or BEP20), as they generally require more gas than a simple ETH transfer due to the additional computational steps involved.

#### Here’s a more straightforward explanation:

When you send ETH or a token (like an ERC20), each transaction needs "gas" to be processed. If the Gas Limit is set lower than the transaction requires, there won't be enough to complete the it, and it will fail with an "Out of Gas" error. Tokens like ERC20 and BEP20 often need more gas than regular ETH transfers because they involve additional operations through smart contracts, which consume more gas.

In such cases, use a higher Gas Limit to allow more gas to be spent. The default limit for token transactions in the Ellipal application is set to 100000; set it to 200000 or even higher if you encounter an "Out of Gas" error.

The actual gas usage is unpredictable, as it can vary significantly depending on the token or the specific smart contract function being executed.

Keep in mind that the gas limit you set is just the maximum amount you're willing to spend (the highest possible cost) to prevent errors that could result in high costs. If the transaction fails due to running "Out of Gas," the gas already spent is non-refundable. This behavior is a characteristic of the Ethereum blockchain and is not related to the functionality of any particular crypto wallet.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.ellipal.com/docs/troubleshooting-and-support/why-did-my-transaction-fail-with-an-out-of-gas-error.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
