ESC
Start typing to search...

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

ToolDescription
createDealCreate a new escrow deal
acceptDealAccept and fund an escrow deal
releaseDealRelease funds to counterparty
cancelDealCancel and refund a deal
getDealStatusCheck 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