Skip to main content
POST
/
xrpl
/
escrow
/
{marketId}
/
release
curl -X POST http://localhost:3001/xrpl/escrow/m1a2b3c4/release \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer your-secret-here" \
  -d '{"userId": "alice"}'
{
  "success": true,
  "data": {
    "txHash": "ABC123...",
    "userId": "alice",
    "sharesReleased": "5555556",
    "beneficiary": "rABC..."
  }
}

Authentication

Requires a bearer token matching the AGENT_API_SECRET environment variable.
Authorization: Bearer {AGENT_API_SECRET}

Path Parameters

marketId
string
required
Market ID of the settlement.

Request Body

userId
string
required
User ID of the participant whose escrow to release.

Response

data
object
curl -X POST http://localhost:3001/xrpl/escrow/m1a2b3c4/release \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer your-secret-here" \
  -d '{"userId": "alice"}'
{
  "success": true,
  "data": {
    "txHash": "ABC123...",
    "userId": "alice",
    "sharesReleased": "5555556",
    "beneficiary": "rABC..."
  }
}