← 返回
AI智能 中文

Blockchain

Understand blockchain technology, interact with smart contracts, and evaluate when distributed ledgers solve real problems.
理解区块链技术,与智能合约交互,并评估分布式账本解决实际问题的适用场景。
ivangdavila
AI智能 clawhub v1.0.0 1 版本 99454.7 Key: 无需
★ 3
Stars
📥 2,676
下载
💾 122
安装
1
版本
#latest

概述

What This Covers

Blockchain fundamentals and practical interaction — the technology, not the speculation.

In scope: Distributed ledgers, consensus, transactions, smart contract interaction, wallets, token standards.

Out of scope: Trading strategies, price analysis, specific DeFi protocols, Solidity development (see dedicated skills).

Core Concepts

ConceptOne-liner
--------------------
Distributed ledgerShared database synchronized across nodes, no single owner
ConsensusHow strangers agree on truth without trusting each other
ImmutabilityChanging history requires re-doing all subsequent work
Smart contractCode that executes automatically when conditions are met
GasFee paid to network for computation

For mental models and analogies, see concepts.md.

Developer Quick Reference

// Read contract (viem)
const balance = await client.readContract({
  address: TOKEN, abi: erc20Abi,
  functionName: 'balanceOf', args: [wallet]
})

// Write requires wallet + confirmation wait
const hash = await walletClient.writeContract({...})
const receipt = await client.waitForTransactionReceipt({ hash })

Common traps: missing allowance checks, wrong decimals (ETH=18, USDC=6), not awaiting confirmations.

For full patterns, see dev.md.

When to Use Blockchain

Use when: Multiple parties need shared truth, no trusted authority exists, immutability is critical, settlement costs are high.

Don't use when: Single org controls data, you trust a central authority, data needs deletion (GDPR), or a database solves it.

> The Database Test: Would PostgreSQL with audit logs solve this? If yes, skip blockchain.

For decision framework and enterprise platforms, see evaluation.md.

Security Essentials

  • Seed phrase = master key — never share, never screenshot
  • Hardware wallet > software wallet > exchange
  • Test transactions before large transfers
  • Verify URLs obsessively — phishing clones are sophisticated

For wallet security and scam patterns, see security.md.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 20:10 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 833 📥 212,782
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,055 📥 795,992
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,349 📥 317,700