Introduction to Transactions in Ethereum

Published by Mario Oettler on

Last Updated on 8. August 2023 by Mario Oettler

The purpose of a transaction is to change the state of the Ethereum network. Suppose Alice owns 2 ETH. If she sends 1 ETH to Bob, this change is recorded in the transaction. And the state would change like in the following chart:

Transactions cause changes in the state of the Ethereum blockchain.

Unlike UTXO-based models like Bitcoin, in Ethereum, balances are assigned directly to an address.

Transactions need a signature that corresponds to the sender. Only if the signature is correct the transaction can be considered as valid.

There are three kinds of transactions:

  1. Normal value transfers. Transfers ETH to another EOA.
  2. Account creation: they don’t have a “to” address. The data field contains the contract code.
  3. Execution of smart contracts: The data field contains the function and the parameters. The “to” address is the address of the smart contract.
Categories:

https://blockchain-academy.hs-mittweida.de/wp-content/uploads/2021/04/logo_bcam_rgb_gross.png

Welcome

Blockchain Academy

Continue with credential

No account yet?

Powered by Hidy

Register with Hidy


Register
Sign in

We need the following credential to register:

please select:

To create a new account, we need the following data from you:

We would appreciate the following additional information from you for the creation of your account:

Welcome

Blockchain Academy

Continue with credential

Already have an account?

Powered by Hidy

Sign in with Hidy


Register
Sign in

We need the following credential to log in:

please select: