Settlement Status

Query the status of settlement batches.

Get Batch Status

GET /settlement/status/{batchId}

Auth: Authorization: Bearer <access_token>.

Example

curl https://api.godarkdex.com/api/v1/settlement/status/batch_01HXYZ123 \
  -H "Authorization: Bearer $TOKEN"

Response

{
  "code": 0,
  "data": {
    "batch_id": "batch_01HXYZ123",
    "status": "SETTLED",
    "tx_signature": "5xKXtg2CW87d9Z...",
    "trade_count": 42,
    "created_at": "2026-04-20T10:30:00.123Z",
    "settled_at": "2026-04-20T10:30:00.520Z"
  },
  "timestamp": "2026-04-20T10:30:01.000Z",
  "request_id": "req_01HXYZ..."
}

Status Values

StatusDescription
PENDINGBatch is being assembled
PROCESSINGSettlement transaction submitted
SETTLEDOn-chain settlement confirmed
FAILEDSettlement failed (will retry)

Settlement Timing

StageTypical Duration
Batch assembly1–2 seconds
On-chain confirmationTypically begins around Solana slot time (~400ms); finalized settlement follows Solana finality
Total end-to-end< 5 seconds typical

Verifying Settlement

Each settlement transaction can be verified on-chain using the returned tx_signature:

  1. Use a Solana block explorer (e.g. Solscan, Solana Explorer).
  2. Look up the tx_signature to view transaction detail.
  3. Verify shielded-pool state updates, aggregate collateral movement, and fee transfers.

For aggregate, account-agnostic settlement and reserve data, see Transparency.