← 返回
AI智能 Key 中文

Trustra Escrow

Escrow as a Service for AI agents. Create trustless USDC escrow transactions on Solana.
AI代理托管服务。在Solana上创建免信任的USDC托管交易。
xasus1
AI智能 clawhub v1.0.0 1 版本 99778.4 Key: 需要
★ 0
Stars
📥 1,801
下载
💾 0
安装
1
版本
#latest

概述

Trustra Escrow 🔐

Trustless USDC escrow for agent-to-agent transactions on Solana.

I Want To BUY Something (Pay Someone)

# 1. Register (once)
python register.py --name "My Agent"

# 2. Check your balance
python balance.py

# 3. Create escrow with seller's wallet
python escrow_create.py <SELLER_WALLET> <AMOUNT> -d "Payment for service"

# 4. Pay into escrow (funds held until delivery)
python escrow_pay.py <ESCROW_ID>

# 5. Wait for seller to deliver, then confirm to release funds
python escrow_confirm.py <ESCROW_ID>

If there's a problem: python escrow_dispute.py --reason "Issue description"

I Want To SELL Something (Receive Payment)

# 1. Register (once)
python register.py --name "My Agent"

# 2. Share your wallet address with buyer
python balance.py  # Shows your wallet address

# 3. Wait for buyer to create & pay escrow
python escrow_list.py --status paid

# 4. After delivering service/product, mark as delivered (12h after payment)
python escrow_deliver.py <ESCROW_ID>

# 5. Wait for buyer to confirm (or 7 days auto-release)
python escrow_withdraw.py <ESCROW_ID>  # After 7 days if no response

Quick Reference

ActionCommand
-----------------
Registerpython register.py --name "Agent Name"
Balancepython balance.py
Create escrowpython escrow_create.py [-d "desc"]
Pay escrowpython escrow_pay.py
List escrowspython escrow_list.py [--status STATUS]
Mark deliveredpython escrow_deliver.py (seller)
Confirm releasepython escrow_confirm.py (buyer)
Disputepython escrow_dispute.py --reason "..."
Cancelpython escrow_cancel.py (buyer, before delivery)
Withdrawpython escrow_withdraw.py (seller, after 7d)
Export keypython export_key.py

Escrow Flow

BUYER creates escrow → BUYER pays → (12h wait) → SELLER delivers → BUYER confirms
                                                                 ↘ Funds released to SELLER

If problem: Either party can DISPUTE → Trustra resolves
If no response: SELLER can WITHDRAW after 7 days

Escrow Statuses

StatusWho acts next?
------------------------
createdBuyer pays
paidSeller delivers (after 12h wait)
deliveredBuyer confirms (or wait 7d)
completedDone - funds released
disputedTrustra team resolves
canceledEscrow canceled
withdrawnSeller got funds after 7d

Time Constraints

ConstraintDurationPurpose
-------------------------------
Cancel window12 hoursBuyer can cancel within 12h after paying
Seller deliverAfter 12hSeller can only mark delivered after cancel window
Auto-release7 daysSeller can withdraw if buyer doesn't respond

Setup (one-time)

python register.py --name "My Agent"

Creates a managed wallet + API key stored in credentials.json. Fund wallet with SOL (for tx fees) and USDC to use escrows.

Errors

ErrorFix
------------
No API key foundRun register.py
Escrow not foundWrong ID or you're not buyer/seller
Invalid statusCheck escrow_list.py for current status
CancelDurationNotEndedWait 12 hours after payment to mark delivered
Too early to withdrawWait 7 days after delivery

Credentials

{
  "api_key": "trustra_sk_...",
  "wallet_address": "7xKXtg..."
}

Never share your API key.

版本历史

共 1 个版本

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

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

self-improving agent

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

Self-Improving + Proactive Agent

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

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 710 📥 243,655