简介
为 AI 代理提供 Base 链上 USDC 无信任托管服务,支持创建、释放、争议仲裁等完整资金流管理,适用于自动化支付场景。
原始描述
Trustless USDC escrow for agent-to-agent payments on Base. Create, release, dispute escrows via simple commands.
中文使用说明 来自收录源
核心用法
usdc-escrow 是一套面向 AI 代理的 USDC 托管技能,部署于 Base 网络,通过命令行脚本实现端到端的自动化支付管理。核心工作流围绕「创建托管 → 服务执行 → 资金释放/争议仲裁」三阶段展开:
- 创建托管:
create-escrow.sh <受益方地址> <金额> <描述> <截止时间>将 USDC 锁定至链上智能合约,资金在条件达成前不可动用 - 状态追踪:
list-escrows.sh与get-escrow.sh支持按状态(active/released/disputed/refunded/expired)筛选,便于批量监控 - 资金释放:服务完成后由托管方主动执行
release-escrow.sh,或受益方发起dispute-escrow.sh进入仲裁 - 争议解决:第三方 AI 仲裁代理通过
resolve-dispute.sh <escrow_id> <true|false>执行最终裁决,结果链上可验证 - 到期回收:逾期未处理的托管可通过
claim-expired.sh原路返还
显著优点
- 无信任架构:基于 Base 链上已验证的智能合约(
0x2a278...52e04),托管逻辑完全链上执行,无需依赖中心化机构 - 代理原生设计:命令行接口与 AI agent 工作流深度适配,支持程序化调用与批量自动化
- ** dispute 机制内置**:集成 AI 仲裁代理,为机器对机器交易提供无需人工介入的争议解决路径
- 资金效率:设置 deadline 自动到期返还,避免无限期资金沉淀
潜在局限与风险
- API 中心化依赖:默认依赖
payclawback.xyz后端服务,若服务宕机需手动设置ESCROW_API_URL切换节点 - 仲裁透明性待验证:"AI arbiter agent" 的具体裁决逻辑、训练数据及去中心化程度文档未披露
- 网络限制:仅支持 Base 链(文档提及 Sepolia 测试网地址),跨链场景需额外桥接
- 脚本权限管理:本地脚本需访问私钥或签名服务,多代理环境下的密钥隔离需额外安全配置
适合人群
- 构建 AI 服务市场的开发者(如数据标注、分析、生成任务平台)
- 需要机器对机器 (M2M) 自动化结算的 Web3 项目
- 希望降低支付对手方风险的 Agent 运营方
常规风险
- 智能合约风险:尽管合约已验证,仍需关注潜在漏洞或升级机制
- API 单点故障:后端服务可用性直接影响操作体验
- 汇率波动:USDC 虽为稳定币,仍存在极端脱锚风险
- 操作不可逆:链上释放/仲裁结果不可撤销,脚本调用前需严格验证参数
技能正文
name: usdc-escrow description: "Trustless USDC escrow for agent-to-agent payments on Base. Create, release, dispute escrows via simple commands." metadata: openclaw: emoji: "🔐" requires: bins: [curl, jq]
USDC Escrow Skill
Overview
This skill provides trustless USDC escrow services for agent-to-agent payments on Base. It allows AI agents to create, manage, and resolve payment escrows using smart contracts.
API
All scripts point to https://api.payclawback.xyz by default. To use a different backend, set:
ESCROW_API_URL- Override API URL (optional)
Available Commands
Create an Escrow
Creates a new escrow holding USDC for a beneficiary.
./scripts/create-escrow.sh <beneficiary_address> <amount_usdc> "<description>" <deadline_hours>
Example: ./scripts/create-escrow.sh 0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28 10 "Payment for data analysis" 48
List Escrows
List all escrows, optionally filtered by state or depositor.
./scripts/list-escrows.sh [--state active|released|disputed|refunded|expired] [--depositor 0x...]
Get Escrow Details
Get details of a specific escrow by ID.
./scripts/get-escrow.sh <escrow_id>
Release Escrow
Release escrowed funds to the beneficiary.
./scripts/release-escrow.sh <escrow_id>
Dispute Escrow
Open a dispute on an active escrow.
./scripts/dispute-escrow.sh <escrow_id>
Resolve Dispute
Resolve a disputed escrow as arbiter.
./scripts/resolve-dispute.sh <escrow_id> <true|false>
true= release funds to beneficiaryfalse= refund to depositor
Claim Expired Escrow
Reclaim funds from an expired escrow.
./scripts/claim-expired.sh <escrow_id>
Workflow Example
- Agent A wants to pay Agent B for a service
- Agent A creates an escrow:
./scripts/create-escrow.sh 0xAgentB 50 "Sentiment analysis job" 24 - Agent B performs the service
- Agent A releases payment:
./scripts/release-escrow.sh 1
How It Works
- USDC is locked in a verified smart contract on Base
- The escrow has a deadline - funds return to depositor if expired
- Either party can open a dispute for arbiter resolution
- The AI arbiter agent resolves disputes impartially
- All transactions are on-chain and verifiable
API Reference
See references/api-docs.md for complete API documentation.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。
其他来源收录
同一技能在不同目录的原始页面: