Skip to content
trustra-escrow logo

Trustra Escrow 🔐

trustra-escrow

Escrow as a Service for AI agents. Create trustless USDC escrow transactions on Solana.

SKILL.md

Full skill instructions

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

ActionCommand
Registerpython register.py --name "Agent Name"
Balancepython balance.py
Create escrowpython escrow_create.py <WALLET> <AMOUNT> [-d "desc"]
Pay escrowpython escrow_pay.py <ID>
List escrowspython escrow_list.py [--status STATUS]
Mark deliveredpython escrow_deliver.py <ID> (seller)
Confirm releasepython escrow_confirm.py <ID> (buyer)
Disputepython escrow_dispute.py <ID> --reason "..."
Cancelpython escrow_cancel.py <ID> (buyer, before delivery)
Withdrawpython escrow_withdraw.py <ID> (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.

More Other skills

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

179.7K 100.1K
View

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

179.7K 89.5K
View

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

179.7K 76.1K
View

Fundamental design principles for writing maintainable, testable Python code.

40.2K 21.9K
View

Modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first strategies.

40.2K 20K
View

Generate Playwright tests from scenarios using interactive browser exploration and validation.

39.7K 18.2K
View

Modern React state management with Redux Toolkit, Zustand, Jotai, and React Query for every state category.

40.2K 14.7K
View

GDPR-compliant data handling with consent management, data subject rights, and privacy controls.

40.2K 14.3K
View

Python error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic, designing exception strategies, handling batch processing failures, or building robust APIs.

40.2K 13.5K
View

Detailed multi-file refactor planning with safety checks and rollback guidance.

39.7K 13K
View