trustra-escrow
Escrow as a Service for AI agents. Create trustless USDC escrow transactions on Solana.
- License 许可
- MIT
- 最近更新
- 2026-04-05
- Stars
- ★ 7
- Forks
- 1
01 前言 Front Matter
- name
- trustra-escrow
- version
- 1.0.0
- homepage
- https://trustra.xyz
- metadata
- { "emoji": "?", "api_base": "https://api.trustra.xyz/api/v2", "category": "payments" }
- description
- Escrow as a Service for AI agents. Create trustless USDC escrow transactions on Solana.
02 资源文件 15
- 参考文档_meta.json280 B
- 其他.gitignore201 B
- 脚本scripts/balance.py1.3 KB
- 脚本scripts/config.py3.0 KB
- 脚本scripts/escrow_cancel.py1.9 KB
- 脚本scripts/escrow_confirm.py1.8 KB
- 脚本scripts/escrow_create.py2.7 KB
- 脚本scripts/escrow_deliver.py1.9 KB
- 脚本scripts/escrow_dispute.py1.9 KB
- 脚本scripts/escrow_list.py2.4 KB
- 脚本scripts/escrow_pay.py1.8 KB
- 脚本scripts/escrow_withdraw.py1.7 KB
- 脚本scripts/export_key.py1.4 KB
- 脚本scripts/register.py2.7 KB
- 脚本scripts/requirements.txt17 B
03 SKILL.md 正文
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 <ESCROW_ID> --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
| Action | Command |
|---|---|
| Register | python register.py --name "Agent Name" |
| Balance | python balance.py |
| Create escrow | python escrow_create.py <WALLET> <AMOUNT> [-d "desc"] |
| Pay escrow | python escrow_pay.py <ID> |
| List escrows | python escrow_list.py [--status STATUS] |
| Mark delivered | python escrow_deliver.py <ID> (seller) |
| Confirm release | python escrow_confirm.py <ID> (buyer) |
| Dispute | python escrow_dispute.py <ID> --reason "..." |
| Cancel | python escrow_cancel.py <ID> (buyer, before delivery) |
| Withdraw | python escrow_withdraw.py <ID> (seller, after 7d) |
| Export key | python 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
| Status | Who acts next? |
|---|---|
created |
Buyer pays |
paid |
Seller delivers (after 12h wait) |
delivered |
Buyer confirms (or wait 7d) |
completed |
Done - funds released |
disputed |
Trustra team resolves |
canceled |
Escrow canceled |
withdrawn |
Seller got funds after 7d |
Time Constraints
| Constraint | Duration | Purpose |
|---|---|---|
| Cancel window | 12 hours | Buyer can cancel within 12h after paying |
| Seller deliver | After 12h | Seller can only mark delivered after cancel window |
| Auto-release | 7 days | Seller 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
| Error | Fix |
|---|---|
No API key found |
Run register.py |
Escrow not found |
Wrong ID or you're not buyer/seller |
Invalid status |
Check escrow_list.py for current status |
CancelDurationNotEnded |
Wait 12 hours after payment to mark delivered |
Too early to withdraw |
Wait 7 days after delivery |
Credentials
{
"api_key": "trustra_sk_...",
"wallet_address": "7xKXtg..."
}
Never share your API key.
04 同仓库更多 Skills
zyfai
Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit/withdraw anytime.
zerion-api
暂无简介
zerion-api-skill
暂无简介
zerion-api-mcp
暂无简介
yahoo-finance-forex
Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR/USD, GBP/USD, USD/JPY, etc.). Analyzes sentiment and provides trading context.
yahoo-finance
This skill should be used when the user asks to "get stock prices", "check stock quotes", "look up earnings", "get financial data", "find trending stocks", or needs stock market data from Yahoo Finance.