Introduction to Ethereum and Blockchain

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

Consider a scenario where an externally owned account (EOA) initiates a transaction on the Ethereum blockchain to interact with a smart contract. If the gas limit provided is insufficient for the execution of the contract's logic, what is the most likely outcome, considering both the immediate and potential long-term consequences?

  • The transaction will be reverted by the EVM, all state changes will be rolled back, and the sender will still be charged for the gas consumed up to the point of failure. (correct)
  • The Ethereum network will automatically adjust the gas limit to accommodate the transaction, potentially delaying block confirmation but ensuring complete execution.
  • The transaction will execute partially, modifying only the state variables that fit within the gas limit, and the remaining operations will be discarded without any record on the blockchain.
  • Miners will have the option to manually adjust the gas limit of the block to allow the transaction to complete, receiving additional transaction fees as compensation.

An engineer aims to optimize gas usage in an Ethereum smart contract. They identify a section of code involving repetitive calculations within a loop. Which strategy would MOST effectively reduce gas consumption without compromising functionality or security?

  • Offloading the computations to a centralized server and storing only the final result on the blockchain to minimize on-chain processing.
  • Utilizing assembly code to bypass Solidity's gas estimation, allowing for more operations to be performed within the same gas limit.
  • Replacing iterative calculations with a mathematical formula that achieves the same result in a single operation, thus minimizing the number of opcodes executed. (correct)
  • Compressing the bytecode of the smart contract to reduce the computational complexity during execution.

In a highly congested Ethereum network, a user submits a transaction with a gas price significantly below the current market rate. Predict the most probable sequence of events, assuming no intervention by the user, and analyze its repercussions.

  • The transaction will remain in a pending state indefinitely, with the possibility of eventually being mined during a period of low network activity, but tying up the account nonce in the meantime. (correct)
  • The transaction will be automatically canceled by the network after a predefined period and the gas will be refunded to the user, albeit at a reduced rate to compensate for processing costs.
  • The transaction will be re-evaluated periodically by the network, and its gas price adjusted dynamically based on market conditions, ensuring eventual execution at a fair rate.
  • The transaction will be redirected to a Layer 2 scaling solution for execution, where gas costs are lower, and the results will be anchored back to the main Ethereum chain.

Consider a scenario where a smart contract designed to manage a decentralized autonomous organization (DAO) is deployed on the Ethereum blockchain. Due to an unforeseen vulnerability, an attacker drains a significant portion of the DAO's funds. Evaluate the potential recourse options available to stakeholders, and assess their implications on the principles of immutability and decentralization.

<p>Initiate a hard fork of the Ethereum blockchain to revert the malicious transaction and restore the DAO's funds, while acknowledging the potential compromise of immutability. (A)</p> Signup and view all the answers

In the Ethereum architecture, differentiate the core functional dissimilarities between Externally Owned Accounts (EOAs) and Contract Accounts (CAs), especially concerning transaction initiation, control mechanisms, and code execution capabilities.

<p>EOAs are controlled by private keys and can initiate transactions, but do not contain code; CAs are controlled by code, can store Ether and data, and execute code in response to transactions. (B)</p> Signup and view all the answers

An engineer encounters a situation where a series of transactions must be executed in a precise sequence on the Ethereum blockchain to maintain the integrity of a complex state transition. How can they guarantee that these transactions are processed in the intended order, especially if they originate from the same EOA?

<p>By carefully managing the 'nonce' value of each transaction, incrementing it sequentially for each transaction in the series to ensure deterministic execution order. (B)</p> Signup and view all the answers

Given the immutability of smart contracts once deployed on the Ethereum blockchain, how can developers effectively address and mitigate critical security vulnerabilities discovered post-deployment, without fundamentally altering the contract's core logic or compromising data integrity?

<p>Utilize a proxy pattern to create a new contract with the security fix, while delegating all function calls from the original contract to the updated proxy, preserving the original contract's address and state. (B)</p> Signup and view all the answers

A DApp (Decentralized Application) developer wants to incorporate off-chain data into a smart contract executing on the Ethereum blockchain. This data is critical for the contract's logic but cannot be directly accessed from on-chain. Evaluate the security and trust implications of various oracle designs, focusing on strategies to prevent data manipulation and single points of failure.

<p>Implement a decentralized oracle network consisting of multiple independent oracles, each providing the same data, and use a consensus mechanism to validate and aggregate the data, mitigating the risk of single-point failures. (C)</p> Signup and view all the answers

Assuming a scenario in which a transaction exists in a Pending status on the Ethereum network, enumerate potential strategies for a user to expedite its confirmation or, alternatively, to cancel it completely, considering both economic implications and technical feasibility.

<p>Submit a new transaction with the same nonce but a higher gas limit, effectively replacing the original transaction and increasing the chances of faster confirmation. (D)</p> Signup and view all the answers

In the context of Ethereum smart contract development, investigate the potential security ramifications of integer overflow and underflow vulnerabilities, and formulate strategies to prevent their exploitation, especially in scenarios involving complex financial calculations or access control mechanisms.

<p>Employ safe math libraries that automatically check for overflows and underflows, reverting transactions when these conditions occur to prevent unexpected behavior. (A)</p> Signup and view all the answers

Assess the significance of block header fields within the Ethereum blockchain architecture, emphasizing their roles in maintaining chain integrity, facilitating efficient data retrieval, and enabling secure transaction verification by light clients.

<p>Block header fields include a parent hash, nonce, timestamp, and transactions root, which collectively link blocks together, enable proof-of-work verification, and allow for efficient Merkle proof construction. (C)</p> Signup and view all the answers

A research team proposes a novel consensus algorithm for a permissioned Ethereum network that aims to enhance transaction throughput while maintaining Byzantine fault tolerance. Analyze the trade-offs between security, scalability, and decentralization inherent in various consensus mechanisms, and determine the most suitable approach.

<p>Proof of Authority (PoA), where a limited number of pre-selected validators are responsible for block production, offering high throughput but reduced decentralization. (A)</p> Signup and view all the answers

Explain the cascading effects on the block time and the overall network throughput of the Ethereum blockchain if the gas limit per block is significantly reduced. Account for economic incentives for miners and the technical challenges of block propagation in a peer-to-peer network.

<p>Reducing the gas limit will proportionally increase the block time, as miners will spend more time selecting transactions, leading to decreased network throughput and higher transaction fees. (D)</p> Signup and view all the answers

Given that every bytecode operation in the Ethereum Virtual Machine (EVM) has fixed gas units assigned, explore the implications of this design choice on smart contract security and performance, especially in the context of denial-of-service (DoS) attacks.

<p>Fixed gas costs for opcodes make smart contracts vulnerable to DoS attacks, as attackers can craft transactions with computationally intensive operations that exhaust the gas limit, preventing legitimate users from executing transactions. (B)</p> Signup and view all the answers

Within the Ethereum transaction lifecycle, differentiate the factors governing the 'gas price' and 'gas limit,' and scrutinize their combined influence on transaction prioritization, miner incentives, and the potential for transaction reversion?

<p>Gas price is the fee a user is willing to pay per unit of gas, influencing miner prioritization, while gas limit is the maximum gas a transaction can consume, preventing infinite loops and potential transaction reversion. (B)</p> Signup and view all the answers

Analyse the implications of smart contract immutability on the development lifecycle in Ethereum, and determine effective strategies for upgrading smart contract functionality without compromising existing data or disrupting dependent applications.

<p>Upgradable smart contract patterns, such as proxy contracts or diamond patterns, allow developers to introduce new functionality while preserving existing data and minimizing disruption to dependent applications. (C)</p> Signup and view all the answers

Predict the impact of altering the block time on the Ethereum network and assess the trade-offs between transaction confirmation speed, orphan rate, and overall network stability.

<p>Decreasing the block time will increase transaction confirmation speed but may also increase the orphan rate, potentially compromising network stability. (A)</p> Signup and view all the answers

Evaluate the interplay between the concepts of 'gas,' 'gas limit,' and 'gas price' within Ethereum transactions, particularly focusing on their combined effect on transaction execution, potential for 'out of gas' errors, and the economic dynamics of miner prioritization.

<p>Gas is a unit representing computational effort, gas limit is the maximum amount of gas a user is willing to pay for a transaction, and gas price is the fee per gas unit, influencing miner prioritization and the risk of 'out of gas' errors. (A)</p> Signup and view all the answers

Analyze the fundamental differences between Proof-of-Work (PoW) and Proof-of-Stake (PoS) consensus mechanisms, with a particular emphasis on their security models, energy consumption profiles, and susceptibility to various attack vectors, such as 51% attacks or long-range attacks.

<p>PoW relies on computational power, making it susceptible to 51% attacks but providing resistance against long-range attacks, while PoS relies on token ownership, consuming less energy but potentially vulnerable to long-range attacks. (A)</p> Signup and view all the answers

Scrutinize the implications of transitioning from a Proof-of-Work (PoW) to a Proof-of-Stake (PoS) consensus mechanism, particularly concerning validator selection criteria, Sybil resistance, and the potential emergence of centralization risks.

<p>PoS enhances Sybil resistance compared to PoW, as it requires validators to stake a significant amount of tokens, making it more difficult for attackers to create numerous fake identities and control the network. (C)</p> Signup and view all the answers

Consider an Ethereum smart contract that manages a decentralized exchange (DEX). Given the potential for front-running attacks, what mechanisms can developers implement to mitigate this vulnerability and ensure fair transaction ordering?

<p>Implement a commit-reveal scheme, where users first submit an encrypted version of their transaction and then reveal it after a certain period, preventing attackers from observing and exploiting the transaction before it's executed. (C)</p> Signup and view all the answers

In the context of Ethereum development, what are the primary functions of an Abstract Binary Interface (ABI), and how does it facilitate interaction between smart contracts and external applications?

<p>An ABI provides a standardized interface for encoding and decoding smart contract function calls and data, allowing external applications to interact with contracts without needing to understand their internal implementation. (A)</p> Signup and view all the answers

Assuming a scenario in which you're building a highly scalable decentralized application (DApp) on Ethereum, what Layer-2 scaling solutions would you implement to maintain low transaction costs and high throughput, while ensuring data integrity and security?

<p>All of the above. (D)</p> Signup and view all the answers

Contrast the functions and capabilities of the CALL, CALLCODE, DELEGATECALL, and STATICCALL opcodes in the Ethereum Virtual Machine (EVM), particularly concerning context preservation, code execution, and state modification.

<p><code>CALL</code> sends value with execution, <code>CALLCODE</code> executes code in the context of the called contract modifying its storage, <code>DELEGATECALL</code> executes code in the context of the calling contract modifying its storage, and <code>STATICCALL</code> is like CALL but disallows any state changes. (A)</p> Signup and view all the answers

In the context of Ethereum's gas mechanism, how does the EVM's metering of computational steps via gas impact smart contract design patterns, and how can developers minimize gas costs to optimize contract functionality?

<p>Developers can use techniques such as minimizing storage writes, using efficient data structures, and reducing loop iterations to minimize gas costs and optimize contract functionality. (D)</p> Signup and view all the answers

Given a smart contract function that requires a complex mathematical calculation, evaluate various strategies to optimize gas usage while preserving accuracy and preventing integer overflow/underflow vulnerabilities.

<p>Employ safe math libraries and carefully order operations to minimize intermediate results, striking a balance between gas efficiency and vulnerability prevention. (D)</p> Signup and view all the answers

Detail the process by which transaction fees are calculated on the Ethereum network. Furthermore, clarify how these fees are dynamically adjusted based on network congestion and miner strategies.

<p>Transaction fees are calculated based on a combination of gas used and gas price, with miners having no direct control over the fees but dynamically adjusting their transaction selection strategies based on the gas price offered. (B)</p> Signup and view all the answers

In the context of Ethereum smart contract security, evaluate the differences between reentrancy locks and mutex patterns in preventing reentrancy attacks, particularly emphasizing their respective trade-offs in terms of gas consumption and contract complexity.

<p>Reentrancy locks provide a coarse-grained protection against reentrancy attacks by setting a global lock, while mutex patterns offer a finer-grained approach using function-level locks, resulting in higher gas consumption but greater control. (B)</p> Signup and view all the answers

Consider a scenario in which an Ethereum smart contract interacts with a Merkle tree to verify membership of a particular data element. Analyze the potential vulnerabilities in the Merkle proof verification process, and formulate strategies to prevent attacks that exploit these weaknesses.

<p>Merkle proof verification is susceptible to path truncation attacks, where an attacker provides a shortened path to a valid leaf, and developers can mitigate this by verifying the length of the path against the tree depth. (A)</p> Signup and view all the answers

A large-scale decentralized application (DApp) built on Ethereum experiences significant performance bottlenecks due to the inherent limitations of the blockchain's throughput. Justify the implementation of various scaling solutions, contrasting the trade-offs between on-chain and off-chain approaches, data availability, and security assumptions.

<p>Implement a state channel-based scaling solution, enabling off-chain transactions between a fixed set of participants, while maintaining data availability and security on the main chain for dispute resolution. (C)</p> Signup and view all the answers

Describe the conditions under which an Ethereum transaction, initially broadcast to the network with a reasonable gas price, might be 'dropped' or fail to be included in a block. Detail the implications for users and decentralized applications.

<p>A transaction may be dropped if the network experiences a surge in congestion, and miners begin prioritizing transactions with significantly higher gas prices, leading to the eviction of lower-priced transactions from the mempool. (C)</p> Signup and view all the answers

Flashcards

Properties of a blockchain?

A distributed ledger, fault-tolerant, and resistance to attack

Who created Ethereum?

Proposed in 2013 by Vitalik Buterin.

What does a full node do?

Verifies transactions using consensus rules.

What does a lightweight node do?

Verifies transactions using Simple Payment Verification (SPV).

Signup and view all the flashcards

What does a blockchain do?

Maintains a series of linked blocks.

Signup and view all the flashcards

What is the genesis block?

The first block in the blockchain.

Signup and view all the flashcards

What does a block header contain?

A block header contains metadata about the block and its predecessor.

Signup and view all the flashcards

What does a parent hash do?

Points to the parent block.

Signup and view all the flashcards

What is a nonce?

Number found by miners to solve the cryptographic puzzle.

Signup and view all the flashcards

What is a timestamp?

Time when the block is found and added to the blockchain.

Signup and view all the flashcards

What is the Ethereum Virtual Machine (EVM)?

Runtime environment for smart contracts.

Signup and view all the flashcards

What are EVM bytecodes?

Compiled smart contract code.

Signup and view all the flashcards

What is Ether (ETH)?

Cryptocurrency used for transactions and computation on Ethereum.

Signup and view all the flashcards

What is wei?

Minimum unit of Ether (1 ETH = 10^18 wei).

Signup and view all the flashcards

What is Gwei?

Unit for gas price.

Signup and view all the flashcards

What is gas?

Fuel of the Ethereum network.

Signup and view all the flashcards

What is gas limit?

Maximum gas amount for the transaction.

Signup and view all the flashcards

What is gas price?

Price you're willing to pay per gas unit.

Signup and view all the flashcards

What are Ethereum Accounts?

Two types: Externally Owned Accounts (EOA) and Contract Accounts (CA).

Signup and view all the flashcards

What controls funds?

Controls the funds of an EOA.

Signup and view all the flashcards

What is a contract account?

Has only a public address; code logic controls funds and states.

Signup and view all the flashcards

What is a transaction?

Used to transfer ETH or interact with smart contracts.

Signup and view all the flashcards

What is 'From'?

Public address of EOA initiating the transaction.

Signup and view all the flashcards

What is 'To'?

Public address of EOA or contract receiving transaction.

Signup and view all the flashcards

What is Gas Limit in Transaction?

Gas included with the transaction.

Signup and view all the flashcards

What is Nonce?

Used to specify execution order; increases by one per transaction.

Signup and view all the flashcards

What is a transaction hash?

Track the status of the transaction and can cancel/drop before execution.

Signup and view all the flashcards

What is pending status?

Awaits execution by the nodes.

Signup and view all the flashcards

What is a successful transaction?

Executed successfully without failure.

Signup and view all the flashcards

What is Dropped Status?

Transaction is Dropped from, or is not included in, the Ethereum network.

Signup and view all the flashcards

What are testnets?

Reproduces the Ethereum blockchain with a same behavior.

Signup and view all the flashcards

What is a Faucet?

A tool that gives free Testnet Ether.

Signup and view all the flashcards

What are smart contracts?

Code that automatically can enforce obligations.

Signup and view all the flashcards

Are smart contracts mutable?

Smart contracts cannot be modified.

Signup and view all the flashcards

What is space on a smart contract?

The storage is limited and costly on a smart contract.

Signup and view all the flashcards

What is Proof of Stake (PoS)?

Consensus algorithm used by Ethereum since July 2024.

Signup and view all the flashcards

What is Broadcast Block?

Share the proposed block with the network.

Signup and view all the flashcards

What is Gas Limit per Block?

The maximum amount of gas can be used by all transactions in a block.

Signup and view all the flashcards

What happens in eth transfer?

Gas in ether needs to be specified.

Signup and view all the flashcards

Study Notes

Introduction to Ethereum

  • Ethereum was proposed in 2013 by Vitalik Buterin.
  • The first production release was in 2015.
  • Ethereum is an open-source, public, and decentralized computing platform and blockchain implementation.
  • Ethereum gained popularity due to its smart contract features.

Blockchain Properties

  • Blockchain properties include distributed ledger, fault tolerance, and attack resistance.
  • Blockchains also remove intermediaries, use a consensus protocol, and offer faster settlement.
  • Blockchains employ transparency, immutability, and irreversible transactions.
  • Blockchains provide trust in the network and availability.
  • Blockchains empower individuals and provide chronological order of transactions.
  • Blockchains are timestamped and sealed with cryptography.

Architecture

  • Bitcoin scripts have limited functionalities, making writing complex scripts difficult.
  • Bitcoin's scripting language is not Turing-complete, as it does not support loops.
  • Writing complex smart contracts becomes easier with Ethereum.
  • Solidity is a Turing-complete smart contract language.

Nodes

  • A full node maintains the complete blockchain data structure and verifies blocks and transactions using consensus rules.
  • A lightweight node verifies transactions using Simple Payment Verification (SPV) without downloading the entire blockchain, using only header information.
  • Nodes executing and verifying transactions are called miners.
  • Miners contribute computing resources or hard disk space to store and validate transactions.
  • Miners collect block rewards and transaction fees.

Blocks

  • A blockchain maintains a series of blocks linked together.
  • The first block in a blockchain is called the genesis block.
  • A block contains multiple transactions and is generated with a consensus algorithm.
  • A block generates in approximately 15 seconds.
  • A miner who generates a block is rewarded.
  • Each block has a defined gas limit.
  • Total gas used by transactions in a block cannot exceed the block's gas limit.
  • A block contains a block header with metadata about the block and the previous block, as well as transactions.

Block Header Fields

  • Parent Hash points to the parent block of the newly generated block.
  • Nonce is the number found by the miner to solve the cryptographic puzzle.
  • Timestamp is the time when the block is found and added to the blockchain.
  • Transactions Root is the Keccak 256-bit hash of the root node of the transaction tree.

Ethereum Virtual Machine (EVM)

  • EVM is the runtime environment for smart contracts.
  • Ethereum supports multiple scripting languages for writing smart contracts.
  • Smart contracts are compiled and converted into EVM bytecodes.
  • Bytecodes are executed by the EVM to perform actions on smart contracts.

ETH (Ether)

  • Ether is a fungible coin that can be subdivided.
  • 1 ETH can be divided into 18 decimal places, with the smallest value called wei.
  • Ether is crypto fuel for the Ethereum network.
  • Gas is consumed for any transaction on the Ethereum network and it is paid in ether only.
  • Transaction fees go to the miners.
  • Solidity supports wei, finney, szabo, and ether units.

Gas

  • Gas is the fuel of the Ethereum blockchain, paid in ether.
  • Every transaction requires specifying a gas price and a gas limit.
  • The network calculates a transaction fee based on set values.
  • Every bytecode operation in EVM has fixed gas units assigned.
  • When the EVM executes an operation, a fixed quantity of gas is consumed by the transaction.
  • If a transaction uses less gas than the limit, the extra gas is refunded to the wallet.
  • If a transaction consumes all gas and requires more, it fails, and gas is consumed as part of transaction fees.
  • Gas price is the price paid per gas unit for executing a transaction.
  • Gas price is always defined in gwei.
  • Miners decide to process transactions based on gas price.
  • An ether transfer requires a fixed 21,000 gas limit per transaction.

Accounts

  • Ethereum has two account types: Externally Owned Accounts (EOA) and Contract Accounts (CA).
  • Both account types hold ETH balances.
  • Account addresses are in hexadecimal and are 20 bytes (160 bits).

Externally Owned Accounts (EOA)

  • An Ethereum wallet can hold multiple EOAs.
  • Wallet creation services generate a new private key using a specific algorithm.
  • A public key is derived using the private key.
  • The combination of a private key and public key is called EOA.
  • An EOA is controlled by its private key for initiating transactions.
  • New wallets are created off-chain using wallet generation algorithms.

Contract Accounts

  • Contracts have a public address, and their code logic controls funds and contract states.
  • An EOA account is needed to create or interact with a contract.
  • Contract accounts have a Solidity code defining behavior.
  • Contract accounts are created on-chain, and their bytecode is included in the block upon successful deployment.

Transactions

  • A transaction on the Ethereum blockchain is required to transfer ETH from EOA or for smart contracts to change state, perform an action, or read a state of a contract.
  • Transactions are initiated from an EOA and can initiate other internal transactions.
  • Users fill required fields for a new transaction then sign with their EOA's private key.

Transaction Fields

  • From is the public address of the EOA that initiated the transaction; transactions from contracts are internal, or message calls.
  • To is the public address of an EOA or contract.
  • Value means a transaction can have zero or nonzero value.
  • The value is nonzero when sending ETH to an EOA, value has either a zero or nonzero value based on the contract function when initiating a transaction to a contract.
  • Gas limit is an important factor for all transactions
  • Gas price is another important factor for all transactions.
  • Nonce starts with 0 for an EOA initiating a transaction, increasing by one for each, and specifying the execution order.
  • Data (hexadecimal) is empty when transferring ETH from one EOA to another EOA, and it will hold the hexadecimal value of the method and its arguments when executing a method of a contract.
  • Transaction hash (transaction ID) is the SHA-256 hash of the signed transaction data.

Transaction Status

  • Pending Status is when a transaction awaits node execution and is prolonged with a low gas price.
  • The transaction initiator can change the the transaction fields at any time by sending another transaction with the same nonce.
  • Successful Status is when a transaction is executed without any failure.
  • Fail Status is when a transaction is executed and fails due to contract method errors or a low gas limit.

Dropped Status

  • Dropped status occurs when it is dropped from the network for several reasons.
  • This typically happens when the transaction was pending for a long duration.
  • A low gas price causes it to be dropped.
  • There is also a limit in the number of pending transactions.
  • Once a transaction is dropped, any gas and ETH are returned to the originating wallet.

Pending Transaction Operations

  • Transaction fields can be altered, keeping the same nonce but increasing the gas price.
  • Transactions can be cancelled with the same EOA.
  • Initiating another self-transaction, changing the To field to own EOA address and using a higher gas price cancels it.

Testnets

  • Testnets replicate the mainnet (production) Ethereum blockchain.
  • Testnet ethers are needed to deploy and test contracts, which can be aquired from a faucet for free.
  • Install and set up a private testnet or use the Ganache tool to test contracts locally.

Smart Contracts

  • Nick Szabo coined the term smart contract in 1994.
  • Smart contracts eliminate intermediaries and enable direct P2P transactions.
  • Smart contracts have the power to automatically enforce obligations.
  • Smart contract code is immutable once deployed and requires a different mindset for writing.

Immutable Code

  • The actual code is immutable, but states and variables can be changed.
  • Behavior is thus altered with these states and variables.
  • There is no way to reverse a transaction, once it has altered the state of a smart contract.

Storage and Gas

  • Smart contract storage space is limited and costly.
  • The Ethereum blockchain cannot handle a large amount of data in a transaction.
  • Limited gas per block limits transaction execution.
  • Any transaction that sends ether consumes gas.
  • To execute a smart contract's logic, the transaction initiator has to pay the associated gas costs in ether.

Hacks

  • The DAO Smart Contract hack in June 2016 stole 3.6 million ETH, worth $50 million and led to a contentious hard fork, creating Ethereum (ETH) and Ethereum Classic (ETC).
  • The Parity Multisignature Wallet Hack in 2017 resulted in the loss of millions in ETH due to vulnerabilities in a popular smart contract-based wallet.

Consensus

  • Ethereum's consensus algorithm as of July 2024 is Proof of Stake (PoS) and specifically called Gasper.

Block Time and Block Reward

  • Ethereum's Block Time from Proof of Stake is approximately 12 seconds.
  • Blocks finalize after 12.8 minutes.
  • Block reward in Proof of Stake is dynamic, based on ETH staked and validator participation.

Gas Limit per Block

  • Gas Limit per Block means the maximum gas all transactions in a block can use.
  • Current Gas Limit is roughly 30 million gas as of July 2024.
  • The gas limit balances network throughput, resource usage, and decentralization.
  • Miners/validators can vote to increase or decrease the gas limit by a small fraction.

Transaction Fee

  • 21,000 gas is needed for a standard ETH transfer.
  • Data and smart contract interactions incur additional costs.
  • Opcodes costs are predefined for EVM operations.
  • This ensures fair pricing, prevents abuse, and maintains stability.
  • Opcodes have variable costs based on input size or context.

Assignment

  • Visit the blockchain explorer at etherscan.io.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

More Like This

Use Quizgecko on...
Browser
Browser