> For the complete documentation index, see [llms.txt](https://dexx.gitbook.io/dexx-zhong-wen-jiao-cheng/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dexx.gitbook.io/dexx-zhong-wen-jiao-cheng/chang-jian-wen-ti/gas-fei-wei-shen-me-zhe-me-gui.md).

# Gas费为什么这么贵？

## Gas费是什么？

Gas费用是每笔交易支付给矿工和链上网络的费用，每笔交易都需要。并不由DEXX收取。<br>

## 为什么购买代币的Gas费用比转账的Gas费用高这么多？

Gas费用与操作的复杂度、计算量和链上存储的需求成正比。代币购买涉及的合约逻辑复杂、状态更新频繁，转账只是简单地将资产从一个地址发送到另一个地址，操作相对简单，所需的计算资源少。 \
\
\*注意：还会有一些特殊的代币，将智能合约写得非常复杂。导致每笔交易的Gas费异常之高。\
\
因此购买代币的Gas费用比普通的转账高很多。<br>

## 优先费和普通快速极速模式是什么？

优先费（Priority Fee），也称为“小费（Tip），是以太坊在EIP-1559升级之后引入的一种费用机制。它允许用户在支付基础费用（Gas Fee）之外，向矿工或验证者支付额外的费用，以便加快其交易被打包的速度。\
支付更高Gas费的交易往往会被优先处理，因此用户可以通过调整Gas费来控制交易的确认速度。\
您可以尝试在交易设置中选择普通、快速、极速模式来调整费用/速度。请记住，更低的 Gas 支出将导致您的交易处理非常缓慢，甚至可能导致您的交易失败。 在代币刚刚开盘或者交易激励的时间段，优先费较低必然导致交易失败。<br>

## Gas费是固定值吗？

不是的，Gas费的价格是动态变化的，受网络拥堵程度的影响。当网络繁忙时，Gas费会提高，以吸引矿工优先处理交易；反之，当网络空闲时，Gas费会降低。 \
交易页面显示的gas为前一秒的价格，波动剧烈，仅供参考。<br>

## Gas费为什么波动这么大？

以太坊上的Gas费波动非常大，主要是因为网络的供需关系、市场竞价机制、交易复杂性、重大市场事件的影响以及矿工或验证者的打包策略等多种因素共同作用。\
随着交易需求的变化，Gas费用会迅速波动，尤其在网络拥堵时，Gas费用往往飙升。\
\
历史最高Gas费用一度达到 1000 Gwei 以上，甚至在极端情况下短暂突破 2000 Gwei。\
通常30Gwei的时候，每笔代币交易Gas价格在 $20-50 不等。<br>

## 交易失败为什么扣了我的Gas费？

Gas 费用是链上的计算成本，进行交易或执行合约的必须费用，并不由DEXX收取。\
当您的交易信息被DEXX打包上链之后，链上也进行了计算，判定您这笔交易无法达成，交易失败。\
所以Gas费用在链上交易失败后无法退还。


---

# 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://dexx.gitbook.io/dexx-zhong-wen-jiao-cheng/chang-jian-wen-ti/gas-fei-wei-shen-me-zhe-me-gui.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.
