微算力 · API 导航与自营网关
API 接入 EN
未登录登录
₿

比特币全栈操作与安全指南

Bitcoin · v1.0.0
专业技能 安全 S 级 作者 ivangdavila 公开目录收录
下载 1.9k 安装 2 收藏 7.7k 浏览 11

简介

比特币专业助手,涵盖钱包管理、费率优化、闪电网络、安全防骗与交易恢复,适合从新手到高级用户的全流程加密货币操作指导。

原始描述

Assist with Bitcoin transactions, wallets, Lightning, and security decisions.

安装

下载 zip 解压后,把里面的文件放进你的 Agent 的 skills 目录即可使用。

给 Agent 的直链(让它自己下载安装):

Claude Code 放 ~/.claude/skills/;Codex、TypingMind 等按各自文档的 skills 目录放置。技能申请什么权限由作者决定,装前请确认。

中文使用说明 来自收录源

核心用法

本技能为比特币用户提供全栈式操作指导,覆盖钱包管理、交易执行、费用优化、闪电网络使用及安全防护五大核心场景。具体功能包括:

  • 钱包诊断:识别不同钱包间的兼容性问题(BIP44/BIP84/BIP86 派生路径差异),解决"余额消失"误报
  • 费用策略:利用 mempool.space API 获取实时费率数据,指导用户在 UTC 夜间及周末低峰期节省 50-80% 手续费
  • 交易恢复:RBF(费用替换)与 CPFP(子为父付)双路径解决交易拥堵,明确适用条件与操作限制
  • 闪电网络管理:通道流动性监控、发票过期预警、强制关闭成本评估
  • 安全防护: dust 攻击识别、地址复用风险、剪贴板恶意软件防范、硬件钱包验证流程
  • 诈骗识别:翻倍骗局、假恢复服务、山寨钱包、社交钓鱼等典型陷阱

显著优点

  • 深度技术细节:深入比特币协议层,如派生路径、RBF/CPFP 机制、UTXO 管理,远超普通科普内容
  • 实战导向:提供可直接调用的 API 端点(mempool.space)、具体费率阈值、时间窗口等可量化建议
  • 攻防双视角:既教用户高效使用网络,也系统梳理攻击向量(dust、地址复用、剪贴板劫持)
  • 闪电网络专业度:涵盖流动性管理、路由失败处理、通道关闭经济学等进阶话题

潜在缺点与局限性

  • 假设用户具备一定基础:大量技术术语(sat/vB、UTXO、CPFP)对纯新手形成门槛
  • 未覆盖法币出入金:专注链上/二层操作,不涉及交易所 KYC、合规税务等现实环节
  • API 依赖单点:mempool.space 作为核心数据源,若服务中断或变更 API,部分指导失效
  • 闪电网络快速演进:通道管理建议可能随协议更新(如 Taproot Assets、ARCF)需要调整

适合人群

  • 已持有比特币、希望优化费用的中级用户
  • 自建节点或计划使用闪电网络的技术爱好者
  • 遭遇"余额丢失"或"交易卡住"需紧急排障的用户
  • 安全意识强、希望系统了解攻击面的持有者

常规风险

  • API 数据误导:mempool.space 反映矿工视角,极端网络条件下(如矿工可提取价值攻击)费率预测可能失效
  • RBF 认知偏差:用户可能误以为所有交易可替换,未标记 RBF 的交易无法加速
  • CPFP 前提误判:若无找零输出,接收方无法发起 CPFP,需明确告知等待或联系发送方
  • 闪电网络资金锁定:通道关闭可能因高费率导致"关闭成本 > 通道余额",小额通道用户尤其需注意
  • 社交工程持续进化:文档所列骗局模式会变异,用户需保持对新话术(如 AI 生成的"官方"互动)的警惕

技能正文


name: Bitcoin description: Assist with Bitcoin transactions, wallets, Lightning, and security decisions. metadata: {"clawdbot":{"emoji":"₿","os":["linux","darwin","win32"]}}

Wallet Compatibility Traps

  • Same seed phrase in different wallets can show zero balance — derivation paths differ (BIP44 for legacy, BIP84 for native segwit, BIP86 for taproot). Ask which wallet created the seed before troubleshooting "missing funds"
  • Importing a seed into a watch-only wallet won't show funds if the wallet defaults to a different address type than the original
  • Some exchanges still reject bc1p (taproot) addresses for withdrawals — verify before giving the user a taproot address

Fee Timing

  • Bitcoin fees follow predictable patterns: weekends and UTC night hours (00:00-06:00) are typically 50-80% cheaper than weekday peaks
  • mempool.space/api/v1/fees/recommended gives current sat/vB rates — wallet built-in estimates are often 12-24 hours stale
  • A transaction at 1 sat/vB during high congestion can stay unconfirmed for 2+ weeks, but will eventually drop from mempools (not fail, just disappear)

Stuck Transaction Recovery

  • RBF (Replace-By-Fee): sender broadcasts new tx with higher fee — only works if original was flagged replaceable (most modern wallets do this by default now)
  • CPFP (Child-Pays-For-Parent): receiver creates a high-fee tx spending the unconfirmed output, incentivizing miners to confirm both — useful when sender didn't enable RBF
  • If user is the receiver and stuck tx has no change output to them, CPFP won't help — they must wait or ask sender to RBF

Lightning Network Gotchas

  • Lightning invoices expire (default 1 hour on many wallets) — an expired invoice cannot receive payment even if the payer tries
  • "Inbound liquidity" limits how much a user can receive — a fresh channel can send but not receive until the balance shifts
  • Closing a channel during high on-chain fees can cost more than the channel balance — warn users before force-closing small channels
  • Lightning payments are not automatically retried — if a route fails, the user must manually retry or the payment fails permanently

Privacy and Security Patterns

  • Dust attacks: tiny amounts sent to addresses to link them when user spends — advise not to consolidate dust with main UTXOs
  • Address reuse lets anyone see full transaction history of that address — each receive should use a fresh address
  • Clipboard malware silently replaces copied addresses — always verify first and last 6 characters match on both devices before confirming send
  • Hardware wallet "verify on device" step is critical — if malware changed the address, only the device screen shows the real destination

Scam Recognition

  • "Send X BTC, receive 2X back" is always a scam — no exceptions, even if the account looks official
  • "Recovery services" that ask for seed phrase will steal everything — legitimate recovery never needs the seed
  • Fake wallet apps in app stores with slight name variations — verify publisher and download count before recommending
  • "Support" DMing users on social media asking to "validate wallet" or "sync" — real support never initiates contact

Verification APIs

  • mempool.space is the current standard block explorer — blockchain.info is outdated and less reliable for fee data
  • Transaction confirmed = included in a block. 1 confirmation is minimum, 6 is standard for high-value, some exchanges require 3
  • Check raw tx with: curl -s "https://mempool.space/api/tx/{txid}" — returns full transaction details including fee, size, confirmation status
  • For address balance: curl -s "https://mempool.space/api/address/{address}" — shows funded/spent totals

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

bitcoincryptocurrencylightning-networkwallet-securityblockchaintransaction-feesself-custodyscam-preventionutxo-management

同类 Skill