Non-zero dataset-share balances held by this DID's DBA

200 with an empty page for an unknown DID, or one that has never claimed.

GET
/v1/dids/{did}/holdings
/v1/dids/{did}/holdings

Path Parameters

did
Required
string

Accepts did:xny:<uuid>, did:xny:<decimal>, bare <uuid> or bare <decimal>. Percent-encoded forms work too — the handler unescapes first, so did%3Axny%3A... from encodeURIComponent resolves correctly.

Query Parameters

limitinteger

Page size. Server-configured default and ceiling (API_DEFAULT_LIMIT / API_MAX_LIMIT; 50 and 200 unless overridden). A value above the ceiling is silently clamped, not rejected — check pagination.limit in the response rather than assuming the requested value was honoured. Values below 1, or non-integers, are a 400.

Minimum: 1

cursorstring

Opaque cursor from a previous response's pagination.nextCursor. Omit for the first page. A malformed cursor is a 400.

curl -X GET "http://lineage-api.xny-staging.svc.cluster.local:8001/v1/dids/string/holdings?limit=1&cursor=string"

A page of holdings.

{
  "items": [
    {
      "datasetId": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
      "balance": "string",
      "totalShares": "string"
    }
  ],
  "pagination": {
    "limit": 0,
    "nextCursor": "string",
    "hasMore": true
  }
}

Last updated