Understanding an Ethereum Transaction

A transaction is the act of transferring Ethereum-based assets from one address to another that is initiated from your wallet (What is a wallet?). The exact steps may vary from one platform to the other, but they generally follow a similar process as shown in our tutorial here.

Types of Transaction

Before we get to know how a transaction works, there are basically three types of transactions that you can perform on the Ethereum blockchain.

- Normal Transaction:
A transaction where an EOA (Externally Owned Address, or typically referred to as a wallet address) sends ETH directly to another EOA. When viewing an address on Etherscan, this type of transaction will be shown under the Transaction tab. Click here for a sample transaction.

- Internal Transaction:
This refers to a transfer of ETH that is carried out through a smart contract as an intermediary. When viewing an address on Etherscan, this type of transaction will be shown under the Internal Txns tab. Click here for a sample transaction.

- Token Transfer:
Transactions of ERC-20 or ERC-721 tokens are labelled as Token Transfer transactions. When viewing an address on Etherscan, this type of transaction will be shown under either the Erc20 Token Txns or Erc721 Token Txns tab, depending on the respective token type. Click here for a sample transaction.

The Life Cycle of a Transaction

  1. A transaction is created when a user initiates through their wallet a transfer of assets from their wallet address to another wallet or contract address.

  2. Once a transaction is created, a transaction hash (also known as Transaction ID or txhash) is assigned to this transaction. This acts as a reference number for the parties involved in the transaction. You can use this to look up the transaction and find out its status and details on block explorers such as Etherscan.

  3. After the transaction is created, it is broadcasted to the network into a pool with other transactions. From here, miners pick out transactions to be included into a block on the blockchain. This process is usually what determines how long a transaction will take.

  4. During this process, there are two factors that ultimately determine the time taken for your transaction to be verified: the network traffic and your transaction's gas fee (What is Gas Fee?).

    i. Network Traffic:
    On paper, the current Ethereum network is capable of processing an average of 15 transactions per second. If your transaction is taking much longer than usual to be confirmed or the recommended gas fee is higher than normal, then chances are that the traffic is congested.

    ii. Gas Fee:
    When the traffic gets congested, miners would often prioritize transactions with higher gas fees. This leaves those with lower gas fees to be stuck with a pending status. Etherscan has a feature that calculates and proposes a recommended gas price for a transaction depending on the network traffic and the average gas price. This feature is called the Gas Tracker and is accessible here.

  5. Once your transaction has been picked up and verified by a miner, the transaction is then considered successful and complete. The status on its Etherscan Transaction Details page will now read "Success" and you can expect to see your new ETH/token balance updated on your wallet soon.

  6. But wait! There is still another factor to be aware of when expecting an incoming transaction, and that is the block confirmation number. A block confirmation number denotes the number of blocks in the blockchain that have been processed (or mined) since the block that your transaction was included in was processed. For example, a transaction with a 5 block confirmation number means that five blocks have been confirmed since the block that the transaction is in was processed.

  7. Different wallet/exchange platforms require different minimum block confirmation numbers (for example, Binance requires a minimum of 12 block confirmation number) and so the waiting time for an asset to be reflected on a wallet or an exchange may vary. Please refer to your service provider for more information on this.

  8. If your transaction is not successful, please refer to our article here to understand the reasons it failed and what to do next.

  9. If your transaction is stuck in pending status, please refer to our article here on how to cancel/replace the said transaction.

TL;DR The Life Cycle of a Transaction

  1. A transaction is created.
  2. The transaction creator gets a transaction hash (also known as Transaction ID or txhash) that they or anyone can use to look for the transaction on a block explorer.
  3. The transaction gets broadcasted to the network and then waits for a miner to pick it up and verify it.
  4. The waiting time depends on the network's current traffic and the gas fee set for the transaction.
  5. The transaction is completed and considered as a success once it has been picked up and verified by a miner.
  6. If the transaction has failed, please refer here.
  7. If the transaction is stuck in a pending status, please refer here.
  • Raja Amir
Updated