Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Windows Tipps & SecurityBatterietester für unter 10 Euro: So prüfen Sie leere Batterien schnell(24.09.2026 um 13:14 Uhr)
Windows Tipps & SecurityBentley bringt sein erstes Elektroauto auf den Markt(24.09.2026 um 13:49 Uhr)
Windows Tipps & SecurityAvocor integriert Korbyt-CMS in B-Series Displays(24.09.2026 um 13:05 Uhr)
Windows Tipps & SecuritydBTechnologies erweitert Opera-Familie um Nona-Serie(24.09.2026 um 13:15 Uhr)
Windows Tipps & SecurityJens Miedek wird Senior Vice President Sales bei Qvest(24.09.2026 um 13:20 Uhr)
Windows Tipps & SecurityBenQ bringt vier neue Boards mit KI-Beschleuniger(24.09.2026 um 13:33 Uhr)
Unix & Linux Server(中文) 小U同学更新:操作更少,秒回更快(24.09.2026 um 13:04 Uhr)
Windows Tipps & SecurityBatterietester für unter 10 Euro: So prüfen Sie leere Batterien schnell(24.09.2026 um 13:14 Uhr)
Windows Tipps & SecurityBentley bringt sein erstes Elektroauto auf den Markt(24.09.2026 um 13:49 Uhr)
Windows Tipps & SecurityAvocor integriert Korbyt-CMS in B-Series Displays(24.09.2026 um 13:05 Uhr)
Windows Tipps & SecuritydBTechnologies erweitert Opera-Familie um Nona-Serie(24.09.2026 um 13:15 Uhr)
Windows Tipps & SecurityJens Miedek wird Senior Vice President Sales bei Qvest(24.09.2026 um 13:20 Uhr)
Windows Tipps & SecurityBenQ bringt vier neue Boards mit KI-Beschleuniger(24.09.2026 um 13:33 Uhr)
Unix & Linux Server(中文) 小U同学更新:操作更少,秒回更快(24.09.2026 um 13:04 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

⛽️ Understanding Gas in Ethereum — The Fuel of Every Transaction

When you use Ethereum — whether sending ETH, minting NFTs, or interacting with DeFi — you’re paying gas. But what exactly is gas? Why does it fluctuate so much? And how do different transaction types (Legacy, EIP-1559, EIP-2930, EIP-4844) …

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

When you use Ethereum — whether sending ETH, minting NFTs, or interacting with DeFi — you’re paying gas.



But what exactly is gas?

Why does it fluctuate so much?

And how do different transaction types (Legacy, EIP-1559, EIP-2930, EIP-4844) affect how gas works?



Let’s break it all down — cleanly, deeply, and visually.









💡 What Is Gas?



Gas is the unit of computational cost in Ethereum.



Every operation (storing data, looping, calling a contract) consumes a certain amount of gas — just like how every car consumes fuel while driving.




💬 Gas measures how much work your transaction needs the Ethereum Virtual Machine (EVM) to do.










⛽️ Example: A Simple Transaction



Let’s say you send 1 ETH to a friend.

Your transaction might cost about 21,000 gas — that’s the cost of the computation to:




  • Verify your signature

  • Update account balances

  • Write to the blockchain



If you interact with a smart contract, the gas usage increases depending on:




  • Function complexity

  • Storage writes

  • External calls









💰 Gas vs Gas Price vs Gas Fee



Let’s break these terms clearly 👇




























Term Meaning Example
Gas The amount of computational work (units) 21,000 gas
Gas Price How much ETH you pay per unit of gas 30 gwei
Gas Fee Total ETH you pay = Gas × Gas Price 21,000 × 30 gwei = 0.00063 ETH








⚙️ Units Refresher





  • Wei = smallest ETH unit
    (1 ETH = 1,000,000,000 Gwei = 10¹⁸ Wei)


  • Gwei = most common unit for gas prices



So when you see Gas Price: 25 Gwei, it means you’re paying 25 billion wei per gas unit.









🔥 How Gas Fees Are Calculated (Post EIP-1559)



In 2021, Ethereum introduced EIP-1559 — a major upgrade that changed how gas fees work.



Now, each block includes:





  • Base Fee → Minimum fee to include your transaction (burned 🔥)


  • Priority Fee (Tip) → Optional reward to miners/validators


  • Max Fee → The maximum you’re willing to pay






💵 Formula:






Total Fee = (Base Fee + Priority Fee) × Gas Used






🧩 Example:




  • Base Fee = 20 Gwei

  • Priority Fee = 2 Gwei

  • Gas Used = 21,000



Fee = (20 + 2) × 21,000 = 462,000 Gwei = 0.000462 ETH



Of that:




  • 20 Gwei × 21,000 is burned 🔥

  • 2 Gwei × 21,000 goes to the validator 💸









🚦 Gas Limit and Refunds






🔹 Gas Limit



The maximum amount of gas you’re willing to spend.

If your transaction runs out of gas before completion → it fails ❌ but still consumes what was used.






🔹 Gas Refund



If you allocate too much gas but use less, you get the unused portion refunded (minus what was actually used).



Example:

You set 100,000 gas limit but only use 40,000 →

You pay for 40,000, not 100,000.









🔍 Gas in Smart Contracts



Every EVM operation has a gas cost:






































Operation Description Gas Cost
ADD Add two numbers 3 gas
SSTORE Write to storage 20,000 gas
CALL Call another contract 700 gas + dynamic
LOG Emit event 375 + 8×data size
TRANSFER Send ETH 21,000 gas


💡 Auditor tip:

When reviewing contracts, pay attention to SSTORE and external calls — they are the most expensive operations and can cause DoS if not optimized.









🔄 All Transaction Types (Legacy → Latest)



Ethereum has evolved over time — each EIP improved how transactions handle gas.









🧾 1. Legacy Transactions (Pre-EIP-1559)



Used before August 2021.




  • Fields: nonce, gasPrice, gasLimit, to, value, data, v, r, s

  • Fee: gasPrice × gasUsed

  • Entire fee goes to miner.



⚠️ Problem: unpredictable fees — users overpaid during congestion.









🔥 2. EIP-1559 Transactions (Post-London Hard Fork)



Introduced base fee + tip model.




  • Fields: maxFeePerGas, maxPriorityFeePerGas

  • Fee split: Base fee (burned) + Tip (to miner)



✅ More predictable fees

✅ Partial ETH burn

✅ Dynamic fee adjustment



Used in most modern wallets (Metamask, etc.)









🧰 3. EIP-2930 Transactions (Access List Transactions)



Introduced access lists to reduce gas for state reads/writes.




  • Includes an accessList field (addresses + storage keys)

  • Helps contracts pre-declare what data they’ll touch.



✅ Gas optimization for complex contracts.

✅ Useful for Layer 2 and rollup environments.









💎 4. EIP-4844 (Proto-Danksharding Transactions)



Introduced in 2024 as part of the Dencun upgrade.



Adds a new transaction type for blob-carrying transactions (used by Layer 2 rollups).




  • Blobs = large chunks of off-chain data, verified by Ethereum

  • Cheaper data availability for L2s

  • Not directly stored on-chain



✅ Greatly reduces rollup costs

✅ Makes Ethereum scalable for the next decade









🧩 Transaction Type Summary






































Transaction Type EIP Introduced Key Feature
Legacy Pre-2021 Fixed gas price
Type 1 (EIP-2930) 2930 2021 Access lists
Type 2 (EIP-1559) 1559 2021 Base + tip gas model
Type 3 (EIP-4844) 4844 2024 Blobs for L2 scalability








🧠 Tips for Developers & Auditors




  1. Always check gas optimization.

    Use tools like Foundry gas snapshot, Slither, or Hardhat-gas-reporter.


  2. Understand the transaction type.

    Some gas refund or storage behaviors differ between EIPs.


  3. Beware of reentrancy and DoS via gas exhaustion.

    Never rely on “gasLeft” logic for security.


  4. Simulate transactions before deploying (e.g., cast estimate in Foundry).


  5. Use events instead of on-chain storage when you can — it’s cheaper.










⚙️ TL;DR Summary








































Concept Description
Gas Unit of computational cost
Gas Price ETH per gas unit (in Gwei)
Gas Fee Total ETH = Gas × Price
EIP-1559 Base fee + tip system (burns ETH)
EIP-2930 Access lists for optimization
EIP-4844 Blobs for cheaper L2 data
Auditor Focus Optimize heavy ops (SSTORE, CALL), verify transaction type








🚀 Final Thoughts



Gas is the heartbeat of the EVM — it keeps the network efficient, fair, and spam-resistant.



As Ethereum evolves through EIPs, gas handling becomes:




  • More predictable (EIP-1559),

  • More efficient (EIP-2930),

  • And more scalable (EIP-4844).



For developers and auditors alike, understanding gas deeply means writing cheaper, safer, and more predictable smart contracts.

SOC Incident Playbook: Vulnerability Remediation & Verification
title: Detect Exploitation - ⛽️ Understanding Gas in Ethereum — The Fuel of Every Transaction
id: ca8719c7-8778-443c-b9c2-f118c21e882d
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-24
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-24"
        description = "YARA Signature for "
    strings:
        $str = "⛽️ Understanding Gas in Ethere" ascii wide
    condition:
        any of them
}
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich ⛽️ Understanding Gas in Ethereum — The F.... Basierend auf 368k Vektor-Korrelationen werden sofortige Isolationsmaßnahmen für betroffene Endpunkte empfohlen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
🔗 Semantisch verwandte Zero-Days MariaDB 11.7 VEC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten ⛽️ Understanding Gas in Ethereum — The Fuel of Every Transaction

Thematisch verwandte Begriffe: Understanding, Ethereum, Fuel, Every · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-97152 | Nanomsg versions 0.5-beta through 1.x before 1.2.3 has a remotely exploi…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel TTP ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick