Ethereum 基础与 EVM
探索 Ethereum 网络、其在智能合约中的作用,以及 Ethereum Virtual Machine(EVM)的功能。
Ethereum 基础与 EVM 是 CoddyKit 上的免费 Blockchain Smart Contracts with Solidity 课时。 这是第 2 节课,共 4 节。 你可以在下方免费阅读本课时的完整内容 — 然后在浏览器中使用内置代码编辑器和全天候 AI 导师进行实践。 这是 Blockchain Smart Contracts with Solidity 学习路径的一部分,你的进度在网页和 CoddyKit 应用中同步。 Blockchain Smart Contracts with Solidity 课程共包含 4 节课。
本课时的部分内容尚未翻译,以英文显示。
Welcome to Ethereum
Ethereum is more than a coin - it's an open, decentralized platform for running smart contracts and building decentralized apps (dApps).
Ether (ETH) and Gas
Every operation on Ethereum costs a fee paid in Ether (ETH). Gas measures the computational work a transaction needs - think of it as fuel, paid in ETH.
Ethereum Accounts
Ethereum has two account types: EOAs, controlled by a private key (a person), and contract accounts, controlled by their deployed code. Both have an address and hold ETH.
Ethereum Transactions
A transaction is a signed message between accounts. It can transfer ETH, deploy a new contract, or call a function on an existing one - and always costs gas.
What are Smart Contracts?
Smart contracts are programs on the blockchain that run automatically when conditions are met. They enforce agreements without intermediaries, and once deployed they're immutable.
Introducing the EVM
The Ethereum Virtual Machine (EVM) is the runtime that executes smart contracts - a single global, decentralized computer shared by the whole network.
EVM's Role: Executing Contracts
Your Solidity contract is compiled to bytecode, which the EVM interprets and runs. Every node runs the EVM identically, so results match across the network.
EVM: Bytecode & Opcodes
The EVM runs low-level opcodes like ADD, PUSH, and MSTORE. Your Solidity compiles down to these, and calling a contract executes the right opcode sequence.
Gas and EVM Execution Cost
Every opcode has a gas cost. This stops infinite loops and spam - and if a transaction runs out of gas it reverts, undoing changes while still charging the gas spent.
Benefits of the EVM
The EVM gives smart contracts determinism (same code, same result on every node), sandboxed isolation, and security via gas limits that block resource-exhaustion attacks.
EVM Quick Check
Test your understanding of the Ethereum Virtual Machine.
Recap: Ethereum & EVM
Recap: Ethereum runs smart contracts via the EVM, paid for in ETH and gas. EOAs and contract accounts interact through signed transactions executed as bytecode.
用 AI 导师学习 Blockchain Smart Contracts with Solidity — 免费
在浏览器中编写并运行真实代码,获得全天候 AI 导师的即时帮助,并在网页或应用中继续学习。
- 课程
- 12
- 课程
- 48
常见问题解答
「Ethereum 基础与 EVM」课时是免费的吗?
是的 — 「Ethereum 基础与 EVM」的完整文本可在网页上免费阅读。要进行交互式练习(内置代码编辑器和全天候 AI 导师)并解锁 Blockchain Smart Contracts with Solidity 课程的其余内容,请升级到 CoddyKit PRO。 Blockchain Smart Contracts with Solidity 课程共包含 4 节课。
「Ethereum 基础与 EVM」这节课中我会学到什么?
探索 Ethereum 网络、其在智能合约中的作用,以及 Ethereum Virtual Machine(EVM)的功能。 你通过在浏览器中直接运行的动手代码来练习 Blockchain Smart Contracts with Solidity,全天候 AI 导师会在你学习这节课的过程中回答你的问题。
学习 Blockchain Smart Contracts with Solidity 需要有经验吗?
无需任何先前经验。CoddyKit 上的 Blockchain Smart Contracts with Solidity 课程适合初学者到高级学习者,你可以从这里开始或从头开始,按照自己的节奏学习。 这是第 2 节课,共 4 节。
「Ethereum 基础与 EVM」课时需要多长时间?
大多数 CoddyKit 课程大约需要 5–10 分钟。每节课都很精短且互动,所以你能稳步进步,并在网页和应用中从离开的地方继续。
我能在这节 Blockchain Smart Contracts with Solidity 课中编写并运行代码吗?
能。每节 Blockchain Smart Contracts with Solidity 课都包含内置代码编辑器,你可以在浏览器中直接编写并运行真实代码,并获得即时 AI 反馈 — 无需本地设置。
此课程中的所有课时
- 什么是区块链技术
- Ethereum 基础与 EVM
- 您的第一个 Solidity 合约
- 钱包、密钥与交易