Deals & Escrow Tools (5)
Secure P2P transactions with escrow protection for safe trading between users.
How it works
Trustless escrow for P2P trades:
- Funds locked in smart contract until conditions met
- Time-based auto-release or refund
- Dispute resolution support
- Multi-asset support (TON, Jettons, NFTs)
Available Tools
| Tool | Description |
|---|---|
createDeal | Create a new escrow deal |
acceptDeal | Accept and fund an escrow deal |
releaseDeal | Release funds to counterparty |
cancelDeal | Cancel and refund a deal |
getDealStatus | Check deal status and details |
Deal Flow
Example Flow
# 1. Seller creates deal
createDeal:
type: sell
asset: TON
amount: 100
price: "50 USDT"
counterparty: "@buyer_username"
# 2. Buyer accepts and funds
acceptDeal:
dealId: "deal_abc123"
# 3. After off-chain payment confirmed
releaseDeal:
dealId: "deal_abc123"Security Features
All deal operations require admin scope to prevent unauthorized transactions.
- Escrow funds locked on-chain
- Timeout-based auto-refund (default: 24h)
- Both parties must confirm release
- Full transaction history logged