Zum Inhalt springen
Mo., 27 Juli UTC 11:41:35 MARKTKAP. $2.02T
BitcoinBTC $65,200.81 +1.09% EthereumETH $1,960.92 +3.91% TetherUSDT $1.00 +0.00% BNBBNB $573.19 +0.39% XRPXRP $1.11 +0.52% USD CoinUSDC $1.00 -0.01% SolanaSOL $76.69 +2.23% TRONTRX $0.3309 -0.42% DogecoinDOGE $0.0727 -0.82% XMR $352.30 -3.47% CardanoADA $0.1647 -0.42% ChainlinkLINK $8.77 +3.96% ToncoinTON $1.60 +0.95% StellarXLM $0.1817 +2.08% DaiDAI $1.00 +0.00% Bitcoin CashBCH $219.00 +3.50%
Glossar

Was ist Gas? Fortgeschritten

Gas is the unit that measures how much computational work a transaction asks a blockchain to perform. A plain transfer uses little; a complex smart-contract call uses far more. You pay for that work in the network's native coin, at a price set by competition for limited block space, which is why the same action can cost wildly different amounts.

It helps to split the fee in two. Gas <em>units</em> describe the work itself and depend on what the transaction does, so they barely change from one day to the next. The gas <em>price</em> is what you offer per unit, and it moves constantly. Your fee is roughly the units used multiplied by the price you agreed to pay.

The price moves because block space is scarce. Pending transactions wait in a queue, and block producers generally include the ones offering more. When a popular mint or a violent market move floods the queue, everybody bids up at once and ordinary transfers get expensive. When things go quiet, the same transfer is cheap. Live conditions are worth checking before you press send, which is what our <a href="/tools/gas-tracker/">gas tracker</a> is for.

A few mechanics catch people out. A gas limit that is too low means the transaction runs out of work partway and fails, and the work already done is still charged, so you pay for nothing. Underpaying on price can leave a transaction stuck in the queue for hours. Estimates shown in a wallet are estimates, not quotes, and they can be stale by the time you confirm. Our <a href="/toolkit/how-to-estimate-a-network-fee/">fee estimation guide</a> walks through reading them.

Finally, fees are not the same everywhere. <a href="/glossary/layer-2/">Layer-2</a> networks batch many transactions together before settling to the chain beneath, and other chains price block space differently again. Cheaper is not automatically better: different networks make different trade-offs on security, decentralisation and how quickly a transaction is truly final.

Lernen Sie das im Learn-Bereich

How Crypto Transactions and Fees Work

Das Wichtigste in Kürze

  • You pay for computation attempted, not computation completed, so a failed transaction still costs a fee.
  • Gas units come from what the transaction does; the volatile part of your fee is the price per unit.
  • The wallet's suggested fee is a moving estimate, so re-check it if you have left the confirmation screen open.

Gas — häufig gestellte Fragen

Why did my transaction fail and still charge me?

Because validators performed work before the transaction ran out of gas or hit a condition the contract rejected. That work has to be paid for regardless of the outcome, otherwise the network could be spammed with deliberately failing transactions for free. Raising the gas limit, or fixing the underlying problem such as a missing token approval, usually prevents a repeat.

Can I speed up a transaction that is stuck?

Often, yes. Most wallets offer a speed-up option that rebroadcasts the same transaction with a higher fee, or a cancel option that replaces it with an empty transaction using the same nonce. Both cost money and neither is guaranteed. If the queue is simply very busy, waiting is sometimes the cheapest route, since fees fall back when demand eases.

Diese Definition dient der Bildung und ist keine Finanzberatung. Krypto ist volatil und hochriskant — recherchieren Sie immer selbst.
Weiterlernen

Neu bei Krypto oder Lücken zu füllen? Arbeiten Sie die Grundlagen in Learn durch, stöbern Sie durch alle Begriffe A–Z oder sehen Sie sich die Live-Preise der Coins an, die diese Konzepte antreiben.