API Reference

REST endpoints for escrow creation, confirmation, and settlement status.

Create Escrow

http
POST /v1/escrow/create
json
{
  "amount": 100,
  "token": "USDC",
  "recipient": "wallet_address",
  "creator": "wallet_address",
  "settlement": {
    "type": "LOCAL_PAYOUT",
    "currency": "GBP"
  },
  "ttl": 86400
}

Confirm Escrow

http
POST /v1/escrow/:id/confirm
json
{
  "signature": "base58_signature"
}

Response Format

json
{
  "escrow_id": "abc123",
  "status": "active",
  "amount": 100,
  "token": "USDC",
  "creator": "wallet_1",
  "recipient": "wallet_2",
  "program_id": "Escrow9...",
  "instructions": ["fund", "confirm", "settle"]
}