Web3 & DApp Development Fundamentals · 课时

以太坊区块链

探索以太坊这一可编程区块链,了解其账户、交易以及 Ether 的作用。

第 1 / 3 课11 个步骤

以太坊区块链 是 CoddyKit 上的免费 Web3 & DApp Development Fundamentals 课时。 这是第 1 节课,共 3 节。 你可以在下方免费阅读本课时的完整内容 — 然后在浏览器中使用内置代码编辑器和全天候 AI 导师进行实践。 这是 Web3 & DApp Development Fundamentals 学习路径的一部分,你的进度在网页和 CoddyKit 应用中同步。 Web3 & DApp Development Fundamentals 课程共包含 3 节课。

本课时的部分内容尚未翻译,以英文显示。

Welcome to Ethereum!

You've learned about blockchain basics. Now, let's dive into Ethereum, a revolutionary blockchain platform.

Unlike simpler blockchains, Ethereum isn't just for sending money. It's a programmable blockchain, meaning you can build and run all sorts of decentralized applications (DApps) on it!

More Than Just Digital Cash

Think of Bitcoin as a digital currency primarily for transactions. Ethereum takes this further.

It's often called a 'world computer' because it allows developers to deploy arbitrary code (smart contracts) that runs exactly as programmed, without downtime, censorship, or third-party interference.

Who's Who: Ethereum Accounts

Interacting with the Ethereum blockchain means using accounts. These are entities that can hold Ether (Ethereum's native currency) and send transactions.

There are two main types of accounts on Ethereum:

  • Externally Owned Accounts (EOAs)
  • Contract Accounts

Your Personal Wallet: EOAs

Externally Owned Accounts (EOAs) are the accounts you, as a user, control. They are managed by a private key, which acts like a super-secret password.

With an EOA, you can:

  • Send and receive Ether.
  • Interact with smart contracts.
  • Sign transactions.

Code-Driven: Contract Accounts

Contract Accounts are controlled by the code of a smart contract that lives on the blockchain. They don't have a private key.

Instead, their behavior is entirely defined by the smart contract's code. They can hold Ether, but can only send transactions or interact with other contracts when triggered by an EOA or another contract.

Making Moves: Ethereum Transactions

A transaction on Ethereum is an instruction, signed by an EOA, that changes the state of the blockchain. It's how you send Ether, deploy smart contracts, or interact with existing ones.

Every transaction is recorded on the blockchain and is immutable once confirmed.

Anatomy of a Transaction

Each transaction contains several key pieces of information:

  • to: The recipient's address (EOA or Contract Account).
  • value: The amount of Ether to send (optional).
  • data: Raw bytecode for contract deployment or function call data.
  • nonce: A transaction counter for the sender, preventing replay attacks.
  • gasLimit & gasPrice: For transaction fees.

Ether: Fueling the Network

Ether (ETH) is the native cryptocurrency of the Ethereum blockchain. It plays two crucial roles:

  • Value Transfer: It's used as a digital currency for payments.
  • Gas: It pays for the computational resources required to execute operations on the network.

Gas: The Network's Engine

Every operation on the Ethereum network—from sending Ether to running smart contract code—requires computational effort. This effort is measured in units called gas.

You pay for this gas using Ether. This mechanism prevents network spam and allocates resources fairly, as users must pay for the computing power they consume.

Quick Check

You've learned about the two main types of accounts on Ethereum. Let's test your understanding!

Recap: The Ethereum Foundation

Great job! You've grasped the core concepts of the Ethereum blockchain.

  • Ethereum is a programmable blockchain for DApps.
  • There are two types of accounts: EOAs (user-controlled) and Contract Accounts (code-controlled).
  • Transactions are signed instructions that change the blockchain's state.
  • Ether (ETH) is the native currency, used for value and to pay for gas.

Next, we'll explore what makes Ethereum truly unique: Smart Contracts!

免费开始

用 AI 导师学习 Web3 & DApp Development Fundamentals — 免费

在浏览器中编写并运行真实代码,获得全天候 AI 导师的即时帮助,并在网页或应用中继续学习。

课程
29
课程
105

常见问题解答

「以太坊区块链」课时是免费的吗?

是的 — 「以太坊区块链」的完整文本可在网页上免费阅读。要进行交互式练习(内置代码编辑器和全天候 AI 导师)并解锁 Web3 & DApp Development Fundamentals 课程的其余内容,请升级到 CoddyKit PRO。 Web3 & DApp Development Fundamentals 课程共包含 3 节课。

「以太坊区块链」这节课中我会学到什么?

探索以太坊这一可编程区块链,了解其账户、交易以及 Ether 的作用。 你通过在浏览器中直接运行的动手代码来练习 Web3 & DApp Development Fundamentals,全天候 AI 导师会在你学习这节课的过程中回答你的问题。

学习 Web3 & DApp Development Fundamentals 需要有经验吗?

无需任何先前经验。CoddyKit 上的 Web3 & DApp Development Fundamentals 课程适合初学者到高级学习者,你可以从这里开始或从头开始,按照自己的节奏学习。 这是第 1 节课,共 3 节。

「以太坊区块链」课时需要多长时间?

大多数 CoddyKit 课程大约需要 5–10 分钟。每节课都很精短且互动,所以你能稳步进步,并在网页和应用中从离开的地方继续。

我能在这节 Web3 & DApp Development Fundamentals 课中编写并运行代码吗?

能。每节 Web3 & DApp Development Fundamentals 课都包含内置代码编辑器,你可以在浏览器中直接编写并运行真实代码,并获得即时 AI 反馈 — 无需本地设置。

此课程中的所有课时

  1. 以太坊区块链
  2. 什么是智能合约
  3. EVM 与燃料机制
← 返回 Web3 & DApp Development Fundamentals