简介
基于Base链的自动化BTC预测市场,通过三代理协作实现流动性提供、自主交易和USDC链上结算,打造7×24小时无人值守的加密经济系统。
原始描述
Fully autonomous BTC prediction market using three agents to provide liquidity, trade, resolve outcomes, and settle onchain in USDC without human intervention.
中文使用说明 来自收录源
核心用法
BTC15 Autonomous Prediction Market 是一套三代理协作的比特币价格预测市场系统,完全基于 USDC 结算。用户部署三个独立代理(Maker、Trader、Resolver)后,系统可自主完成完整的经济循环:Maker 代理持续提供 USDC 流动性并铸造 YES/NO 份额;Trader 代理监控 BTC 价格波动,基于阈值自动下注;Resolver 代理在轮次结束时获取外部价格数据、判定结果并自动赎回收益。资金自动复投进入下一轮,形成永续运转的链上经济系统。
显著优点
完全自主化:从流动性注入到收益结算,零人工干预即可无限运行,真正实现了"代理原生"的经济系统。
稳定币结算:采用 USDC 作为统一计价单位,避免了加密资产波动性对代理决策的干扰,适合机器对机器(M2M)商业场景。
模块化架构:三个代理职能分离,可独立运行或组合启动,便于调试、优化和扩展至其他资产类别。
链上透明:所有交易、清算、赎回逻辑均通过 Base Sepolia 智能合约执行,具备可审计性。
潜在局限
外部代码依赖:Skill 本身为 Markdown 文档,核心功能依赖用户从 GitHub 克隆的外部 Python 仓库,该代码未经 CLS 审计,存在供应链投毒风险。
私钥管理负担:需配置三个明文私钥(.env 文件),资金安全管理完全由用户承担,操作不当易导致资产损失。
单点数据来源:BTC 价格数据由 Resolver 代理从外部获取,未披露具体数据源及防篡改机制,存在数据操纵理论风险。
测试网局限:当前合约部署于 Base Sepolia 测试网,主网迁移需额外验证。
适合人群
- DeFi 协议开发者探索自动化做市机制
- 代理经济研究者构建 M2M 支付原型
- 预测市场产品经理验证无许可市场模型
- 区块链安全研究者分析链上代理交互模式
常规风险
- 资金风险:私钥泄露或外部代码漏洞可能导致 USDC 损失
- 智能合约风险:未经审计的合约代码可能存在重入、价格操纵等漏洞
- 供应链风险:
web3、requests等依赖包存在被恶意篡改可能 - 来源可信度:开发者为个人账号(kamal-sutra),历史贡献与审查流程不透明
建议仅在隔离环境使用测试网资金验证,主网部署前完成独立安全审计与合约验证。
技能正文
BTC15 Autonomous Prediction Market A fully autonomous BTC prediction market powered by three cooperating agents using USDC.
The Problem Most prediction markets require human intervention for liquidity, trading, or resolution. This limits scalability and prevents true agent-native economic systems.
This skill demonstrates a fully autonomous prediction market loop where agents:
provide liquidity, trade based on market data, resolve outcomes, and settle value onchain in USDC.
No human interaction is required once the system starts.
Agents This system consists of three autonomous agents:
Maker Agent Continuously provides liquidity by minting YES/NO shares and posting sell offers.
Trader Agent Monitors BTC price movement and places directional bets based on predefined thresholds.
Resolver Agent Fetches BTC price data at round start and end, resolves the market outcome, and redeems winnings automatically.
Economic Loop Each round follows a fully autonomous lifecycle:
- Maker provides liquidity in USDC.
- Trader observes BTC movement and places a bet.
- Round ends.
- Resolver determines outcome using external price data.
- Contract resolves onchain.
- Winnings are redeemed automatically.
- Capital is reused in the next round.
This creates a continuous onchain economic loop:
liquidity → trading → resolution → settlement → reinvestment
Key Properties Fully autonomous: no human steps required after launch. USDC settlement: stable unit of account for agent commerce. Continuous operation: agents run indefinitely. Onchain resolution and redemption.
Installation Clone the main project:
git clone https://github.com/kamal-sutra/clawbtc15.git cd clawbtc15
Install Python dependencies:
pip install web3 python-dotenv requests
Create environment file:
cp .env.example .env
Fill in the following values:
RPC=https://sepolia.base.org
MARKET=0x03956BC8745618eCCD7670073f7cAa717caDC5F4 USDC=0x036cbd53842c5426634e7929541ec2318f3dcf7e
MAKER_KEY= TRADER_KEY= RESOLVER_KEY=
Commands Run maker:
run-maker
Run trader:
run-trader
Run resolver:
run-resolver
Run all agents:
run-all
Contract Details Network: Base Sepolia USDC: 0x036cbd53842c5426634e7929541ec2318f3dcf7e Market: 0x03956BC8745618eCCD7670073f7cAa717caDC5F4
Use Cases Agent-native trading systems. Autonomous market making. Onchain economic coordination between agents. Continuous prediction markets.
Built for the USDC Hackathon (Feb 2026).
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。