−50%25d13h$49.99聲明
交易術語表Crypto

Gas 上限

gas 上限是以太坊或類似鏈上一筆交易可以消耗的最大 gas 數量;支付的手續費等於實際消耗的 gas 乘以 gas 價格。

公式

手續費 = 消耗的 gas × (基礎費用 + 優先費用)

詳解

一筆簡單的 ETH 轉賬消耗 21,000 gas;與合約互動則消耗更多。如果交易耗盡 gas 就會失敗,但已消耗的 gas 仍需支付。區塊也有 gas 上限,限制每個區塊能容納的計算量。

示例

一次兌換消耗 150,000 gas,總價格為 20 gwei。

手續費為 150,000 × 20 gwei = 0.003 ETH。

常見錯誤

01

把上限設得太低,交易失敗還損失了手續費。

02

把 gas 上限與 gas 價格混淆。

03

不瞭解錢包的預設設定就隨意修改。

交易者常問的問題

我需要支付全部 gas 上限嗎?

不需要,你只為實際消耗的 gas 付費;未使用的 gas 不收費。

什麼是 gwei?

十億分之一個 ETH,是用於 gas 價格的單位。

測測你的水平 · 1/3

你每筆交易都使用固定的風險嗎?

We (marketpedia.co) and selected third parties (4) collect personal information as specified in the privacy policy and use cookies or similar technologies for technical purposes and, with your consent, for functionality, experience, measurement and “marketing (personalized ads)” as specified in the cookie policy.

With respect to advertising, we and 1244 selected , may use precise geolocation data and identify devices based on information actively requested in order to store and/or access information on a device and process personal data like your usage data for the following : personalised advertising and content, advertising and content measurement, audience research and services development.

You can freely give, deny, or withdraw your consent at any time by accessing the preferences panel. Your choices apply only to this domain. Denying consent may make related features unavailable.

Use the “Accept” button to consent. Use the “Reject” button to continue without accepting.