---
title: "什么是智能合约？含义与例子 | TradeLiga"
description: "区块链上的一段程序，条件满足时就自动执行。它的代码通常是公开的，谁都能看，包括想找漏洞的攻击者。 一台自动售货机。投对硬币、按下按钮，它就递给你一瓶饮料，不需要店员。 一份借贷智能合约最多允许借出押金的80%。锁定价值1,500美元的以太币，它最多借给你1,500 × 0.80 =…"
url: https://tradeliga.com/zh/glossary/smart-contract
language: zh
dateModified: 2026-11-27
---

[股票、基金与大宗商品](https://tradeliga.com/zh/glossary?c=stocks)

# 什么是 智能合约？

Smart contract

[区块链](https://tradeliga.com/zh/glossary/blockchain)上的一段程序，条件满足时就自动执行。它的代码通常是公开的，谁都能看，包括想找漏洞的攻击者。

[用60秒学会它](https://tradeliga.com/zh/learn/w:smart-contract)
[来自你的学习路径 **第4.6.4课 · 去中心化金融（DeFi）入门**](https://tradeliga.com/zh/learn/defi)

## 打个比方

一台自动售货机。投对硬币、按下按钮，它就递给你一瓶饮料，不需要店员。

## 真实案例

一份借贷智能合约最多允许借出押金的80%。锁定价值1,500美元的以太币，它最多借给你1,500 × 0.80 = 1,200美元，不用问任何人。

## 要点

- DeFi用代码取代了你需要信任的公司。
- 代码不会偷你的币，可一个漏洞就能让别人把币拿走，而且无法撤销。

第4.6.4课 · [去中心化金融（DeFi）入门](https://tradeliga.com/zh/learn/defi)

## 常见问题

**智能合约是什么意思？**

区块链上的一段程序，条件满足时就自动执行。它的代码通常是公开的，谁都能看，包括想找漏洞的攻击者。

**智能合约有什么例子？**

一份借贷智能合约最多允许借出押金的80%。锁定价值1,500美元的以太币，它最多借给你1,500 × 0.80 = 1,200美元，不用问任何人。

## 相关词条

- [**去中心化金融（DeFi）** 靠区块链代码运行的金融](https://tradeliga.com/zh/glossary/decentralised-finance-defi)
- [**流动性池** 智能合约里供交易的币](https://tradeliga.com/zh/glossary/liquidity-pool)
- [**算法稳定币** 靠代码而不是储备守价的稳定币](https://tradeliga.com/zh/glossary/algorithmic-stablecoin)
- [**锚定价格** 稳定币要守住的价格](https://tradeliga.com/zh/glossary/peg)
- [**稳定币** 设计成保持币值稳定的加密货币](https://tradeliga.com/zh/glossary/stablecoin)
- [**权益证明** 验证者锁定押金来添加区块](https://tradeliga.com/zh/glossary/proof-of-stake)
- [**工作量证明** 电脑比赛解题来添加区块](https://tradeliga.com/zh/glossary/proof-of-work)
- [**哈希值** 锁住过去区块的一段短代码](https://tradeliga.com/zh/glossary/hash)

[术语词典全部477个词条](https://tradeliga.com/zh/glossary)

---

Source: <https://tradeliga.com/zh/glossary/smart-contract>

TradeLiga is a free trading-education game: pretend money only, no financial advice.
