What are Ethereum Transactions? | QuickNode (2024)

5 min read

Overview

Transactions in Ethereum are cryptographically signed data messages that contain a set of instructions. These instructions can interpret to sending Ether from one Ethereum account to another or interacting with a smart contract deployed on the blockchain. Transactions are a simple but powerful concept that has allowed users worldwide to interact on a decentralized network. This guide will cover the idea of transactions in the context of the Ethereum network.

What we will cover

  • Transaction fundamentals
  • Transaction architecture
  • Viewing transaction data programmatically

What you will need

  • Terminal window

Transaction Fundamentals

A transaction usually consists of the following parameters: [nonce, gasPrice, gasLimit, to, value, data, v, r, s]. However, Ethereum has evolved to allow other transaction standards such as EIP-1559. The EIP-1559 transaction standard came from an improvement proposal to allow more predictable gas fees and a more efficient transaction market. Before going over transactions, let us quickly recap where transactions derive from.

Accounts

There are two types of accounts, smart contract accounts and externally owned accounts (EOA):

  • Externally owned accounts (EOA) refer to accounts that humans manage, such as a personal Metamask or Coinbase wallet. This account is identified by a public key (also known as an account address) and is controlled by a private key. The public key is derived from the private key using a cryptographic algorithm. It's important to note that these accounts cannot store information other than your accounts balance and nonce.
  • Smart contract accounts (also known as contract accounts) also contain an address to balance mapping but differ because they can also include EVM code and storage. Contract accounts control themselves by the logic in the EVM code stored within the account.

Ethereum utilizies the elliptic curve digital signature algorithm (ECDSA) to prove authentication (i.e., prove that we have a private key for our public address) and verify that our transaction comes from the account signing the transaction and is not fraudulent.

Types of Transactions

Let us tie the information we just learned about accounts with the different types of transactions:

  • Message call transaction: A message call derives from an externally owned account that wants to interact with another EOA or contract account. An example of a message call would be sending Ether from one account to another, or interacting with a smart contract (e.g, swapping tokens on Uniswap).
  • Contract creation transaction: A contract creation derives from an EOA to create a smart contract account (generally to store code and storage). An example of this type of transaction would be deploying a storage smart contract to store data.

Transaction States

  • Pending: Transactions broadcasted to the network waiting to be mined. If the transaction is taking longer than expected, it's possible that your gas fee is not high enough to meet execution at the current time.
  • Queued: A transaction that cannot be mined yet due to another pending transaction in the queue first or an out of sequence nonce.
  • Cancelled: Can no longer be mined. Replaced by a transaction with a higher gas fee, same nonce value, and a null value for the data and/or value field.
  • Replaced: Can no longer be mined. Used to replace current pending orders for faster execution or modification of values and data. This also consists of using the same nonce as the transaction you want to cancel and a higher gas fee.
  • Failed: A transaction that resulted in an error due to a revert error, bad instructions, illogical code, or not enough gas to run the remainder of a function call.

For an in-depth look into pending and queued transactions, visit our QuickNode guide here.

Transaction Architecture

The transaction format for Ethereum was originally one standard but has evolved over time to allow other transaction formats. The set of instructions in a transaction object looks like this:

  • from - the sending address.
  • to – the receiving address (if EOA, the transaction will transfer value. If a smart contract account, the transaction will use contract code).
  • value – the amount of ETH to be sent from the sending address (denominated in Wei)
  • data – can contain code or a message to the recipient.
  • gasLimit – the maximum amount of gas units that can be used.
  • nonce - a number used to track ordering of transactions and prevent replay attacks
  • maxPriorityFeePerGas - the maximum amount of gas to be included as a tip to the miner.
  • maxFeePerGas - the maximum amount of gas willing to be paid for the transaction (including baseFeePerGas and maxPriorityFeePerGas).
  • signature – derived from the sending account's private key and is created when the sender signs the transaction.

As you can tell from the fields above, the term gas gets mentioned several times. It is an important piece of a transaction. Transactions use gas as fuel to execute and be mined onto the blockchain, but more importantly, gas fees help keep the Ethereum network secure. Gas is paid in Ether (the native coin on Ethereum) but denominated in other units such as Wei and Gwei to be more measurable. Wei is used when describing smaller value transactions, and Gwei is commonly used when dealing with gas fees.

Transaction Lifecycle

The transaction lifecycle can be simplified to:

  1. An external account creates a transaction object.
  2. The account sending the transaction verifies it by signing which creates a transaction hash
  3. The transaction is broadcasted across the network using an Ethereum node
  4. The transaction execution is idle until the transaction is mined and added to the block or replaced/canceled.

Set Up Your QuickNode Ethereum Endpoint

Now let's take everything that we've learned and see it in action. We'll easily set up an Ethereum endpoint with QuickNode and use it to retrieve a transaction by its hash. If you already have an account, navigate to the Endpoints page and fire up an Ethereum mainnet endpoint. Otherwise, create an account on our signup page.

What are Ethereum Transactions? | QuickNode (1)

Viewing Transaction Data Programmatically

Start by opening up your terminal window and run the command curl (check if you have proper dependencies). If you get the response `curl: try 'curl --help' or 'curl --manual' for more information`, great you have the required dependencies and can run the curl code below.

Copy the code below and replace the URL placeholder with your QuickNode endpoint. Paste the modified code into your terminal and hit enter.

The output should contain the same values as below:

What are Ethereum Transactions? | QuickNode (2)

Most of the data returned is in hex format but if you want it easily decoded, you can use resources such as Etherscan or programming libraries such as Ethers or Web3.py.

To see additional QuickNode RPC endpoints you can call, navigate to our QuickNode Docs.

Conclusion

That's a wrap! In this guide, we explained the core concepts of transactions on Ethereum. Remember that Ethereum follows an Account-Balance model and can utilize different types of transactions for different use cases. We hope you continue to advance your learning and share it with others.

Subscribe to our newsletter for more articles and guides on Ethereum. Feel free to reach out to us via Twitter if you have any feedback. You can always chat with us on our Discord community server, featuring some of the coolest developers you'll ever meet :)

What are Ethereum Transactions? | QuickNode (2024)

FAQs

What are Ethereum transactions? ›

Ethereum transactions involve sending ether or tokens from one address to another, with fees paid in gas to incentivize miners to process the transaction on the blockchain.

How many transactions can Ethereum handle? ›

Max Theoretical TPS

For example, the Ethereum block size is 30 million gas, the block time is 12 seconds, and the transfer of Ether takes 21,000 of gas. It means each block can contain 30 million / 21,000 = 1428 transactions. So, the maximum theoretical TPS is 1428 transactions / 12s = 119 transactions per second.

What is the average transaction for ETH? ›

Ethereum Average Transaction Fee is at a current level of 0.9438, up from 0.9186 yesterday and down from 0.9705 one year ago. This is a change of 2.74% from yesterday and -2.75% from one year ago.

What is Ethereum answer? ›

Ethereum is a decentralized blockchain platform that establishes a peer-to-peer network that securely executes and verifies application code, called smart contracts. Smart contracts allow participants to transact with each other without a trusted central authority.

How do you get Ethereum transactions? ›

How to check your ETH transactions
  1. Go to https://etherscan.io/
  2. Fill your Txhash (Address/ IP / SHA hash) ** Txhash can be found from > "My Account" > "Transaction history" > "Crypto".
  3. You will be redirected to the transaction summary page.
Feb 18, 2023

What are Ethereum internal transactions? ›

Unlike regular transactions initiated by users, internal transactions are interactions between different functionalities within the blockchain network. Internal transactions on the Ethereum ecosystem are transactions that occur within a contract, as opposed to transactions that are initiated by an external EVM address.

What is the minimum Ethereum transaction? ›

By default, the minimum gas unit you must spend on any Ethereum transaction is 21,000. So, let's suppose Alice is sending 5 ETH to Bob. The gas unit is 21,000 by default and Alice chooses to pay 300 gwei per unit based on the current network conditions.

What is the transaction limit for Ethereum? ›

A gas limit is set for every transaction on the Ethereum network and refers to the maximum amount of gas a transaction is willing to pay to get confirmed. The minimum gas limit is set at 21,000 across the Ethereum network, and there is no upper limit set by the network.

What is the hard limit of Ethereum? ›

Under EIP-1559, there is also a maximum (or “hard cap”) gas limit, set to twice the target, which is 30 million gas. This means that a block can include transactions using up to 30 million gas. Since then Ethereum's block gas limit remained the same and, as of 2024, it is still at 30 million gas per block.

How much does one Ethereum transaction cost? ›

Ethereum Average Transaction Fee is at a current level of 0.0002, down from 0.0003 yesterday and down from 0.0005 one year ago. This is a change of -33.33% from yesterday and -60.00% from one year ago.

How long does an Ethereum transaction take? ›

An Ethereum network confirmation completes in 16 seconds and depending on the required confirmations, transactions can take between 1 to 5 minutes. Thus, transactions are reliant on the imposed security features of each wallet.

What is the transaction per day of Ethereum? ›

Ethereum Transactions Per Day is at a current level of 1.167M, up from 1.158M yesterday and up from 1.022M one year ago. This is a change of 0.71% from yesterday and 14.19% from one year ago. Ethereum Transactions Per Day reflects the daily number of transactions completed on the Ethereum network.

What burns Ethereum? ›

Several mechanisms within the Ethereum ecosystem facilitate the burning of ETH. One of the most significant is the base fee burning introduced by EIP-1559. This upgrade fundamentally changed Ethereum's fee structure, mandating that a portion of every transaction fee (the base fee) be permanently burned.

Is Ethereum better than Bitcoin? ›

Ethereum, it depends entirely on your requirements. While Bitcoin works better as a peer-to-peer transaction system, Ethereum works well when you need to create and build distributed applications and smart contracts.

Can someone explain Ethereum to me? ›

Ethereum is a decentralized blockchain with smart contract functionality. Ether (abbreviation: ETH) is the native cryptocurrency of the platform. Among cryptocurrencies, ether is second only to bitcoin in market capitalization. It is open-source software.

What is the difference between Bitcoin and Ethereum transactions? ›

Bitcoin is seen as a decentralized value store and less volatile, as well as known for its fixed supply. Ethereum, with more functions, has higher transaction activity, but it is not accurate to say it has greater adoption rates than Bitcoin. Also, Ethereum has not fully adopted the PoS system yet.

What is the difference between token transfer and transaction? ›

Token Transfer - The exchange's smart contracts will then deposit the tokens to the smart contract connected to the liquidity pool. Internal Transaction - The exchange's contract receives the exchanged amount in WETH (wrapped Ethereum) and then sends that amount to the WETH smart contract to be converted to ETH.

Why are Ethereum transactions so expensive? ›

-Transaction fees in Ethereum depend on blockchain congestion and operation complexity. Despite a large user base, Ethereum's limited processing capacity leads to high fees.

What is Ethereum and how does it work? ›

Ethereum is a blockchain-based computing platform that enables developers to build and deploy decentralized applications—meaning not run by a centralized authority. You can create a decentralized application for which the participants of that particular application are the decision-making authority.

Top Articles
SLP Beginners Guide | How to Buy, Sell, and Earn SLP in the Philippines | BitPinas
Track all investments in one place - Portseido
Devon Lannigan Obituary
Www.craigslist Virginia
How To Do A Springboard Attack In Wwe 2K22
Math Playground Protractor
America Cuevas Desnuda
Best Theia Builds (Talent | Skill Order | Pairing + Pets) In Call of Dragons - AllClash
Devourer Of Gods Resprite
Audrey Boustani Age
Jasmine Put A Ring On It Age
What is the difference between a T-bill and a T note?
Where does insurance expense go in accounting?
I Wanna Dance with Somebody : séances à Paris et en Île-de-France - L'Officiel des spectacles
Craigslist List Albuquerque: Your Ultimate Guide to Buying, Selling, and Finding Everything - First Republic Craigslist
Chic Lash Boutique Highland Village
Les Rainwater Auto Sales
25Cc To Tbsp
Star Wars: Héros de la Galaxie - le guide des meilleurs personnages en 2024 - Le Blog Allo Paradise
Average Salary in Philippines in 2024 - Timeular
97226 Zip Code
Azpeople View Paycheck/W2
Rufus Benton "Bent" Moulds Jr. Obituary 2024 - Webb & Stephens Funeral Homes
Sussyclassroom
Mega Personal St Louis
Egizi Funeral Home Turnersville Nj
Urban Dictionary Fov
14 Top-Rated Attractions & Things to Do in Medford, OR
Wood Chipper Rental Menards
Inter Miami Vs Fc Dallas Total Sportek
Masterbuilt Gravity Fan Not Working
Pronóstico del tiempo de 10 días para San Josecito, Provincia de San José, Costa Rica - The Weather Channel | weather.com
Robotization Deviantart
Dl.high Stakes Sweeps Download
3473372961
Kristen Hanby Sister Name
Wow Quest Encroaching Heat
Honda Ruckus Fuse Box Diagram
140000 Kilometers To Miles
Umd Men's Basketball Duluth
QVC hosts Carolyn Gracie, Dan Hughes among 400 laid off by network's parent company
Squalicum Family Medicine
Tacos Diego Hugoton Ks
Nearest Wintrust Bank
New Starfield Deep-Dive Reveals How Shattered Space DLC Will Finally Fix The Game's Biggest Combat Flaw
Premiumbukkake Tour
552 Bus Schedule To Atlantic City
18 Seriously Good Camping Meals (healthy, easy, minimal prep! )
2000 Fortnite Symbols
Kobe Express Bayside Lakes Photos
Dr Seuss Star Bellied Sneetches Pdf
Latest Posts
Article information

Author: Kieth Sipes

Last Updated:

Views: 6565

Rating: 4.7 / 5 (67 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Kieth Sipes

Birthday: 2001-04-14

Address: Suite 492 62479 Champlin Loop, South Catrice, MS 57271

Phone: +9663362133320

Job: District Sales Analyst

Hobby: Digital arts, Dance, Ghost hunting, Worldbuilding, Kayaking, Table tennis, 3D printing

Introduction: My name is Kieth Sipes, I am a zany, rich, courageous, powerful, faithful, jolly, excited person who loves writing and wants to share my knowledge and understanding with you.