Transactions

The Ethereum Virtual Machine (EVM) does not run on its own—everything always starts with an EOA sending a transaction. Transactions are signed messages transmitted to the Ethereum network and are the only things that can change the world state. Only EOAs can initiate a transaction by signing a particular kind of message and sending it to a network node.

There are four types of transactions:

  • Regular: A cryptocurrency transfer from one account to another.

  • Contract deployment: A special transaction used to upload a smart contract code into the world state.

  • Contract execution: A transaction used to execute the code of a deployed smart contract.

  • Internal: Smart contracts can not initiate transactions, but when their execution is triggered (by an execution transaction), they can run other smart contracts by so-called internal transactions.

The London upgrade

In August 2021, The Ethereum London upgrade in changed the way transaction fees are calculated. The upgrade was introduced to address the scalability and fee market pressure of the Ethereum blockchain. Specifically, it realized a new fee market structure to replace the previous gas price auction mechanism.

Before the upgrade, the total transaction fee was calculated as:

Get hands-on with 1200+ tech skills courses.