List published Collection versions containing a Record

Returns membership in descending publication log order from one canonical CollectionPublication checkpoint. Each item identifies the immutable membership and publication commitments, the initial approved terms and the current approved commercial terms and sales flags at the checkpoint. Each published version appears as a separate item. Once the projection catches up, a Record ID with zero matching publications returns an empty page. A positive offset requires all three checkpoint parameters from the first page.

GET
/v1/records/{recordId}/collections
/v1/records/{recordId}/collections

Path Parameters

recordId
Required
string

A 32-byte on-chain identifier — dataset id, frontier id, campaign id, task id, CF id, Merkle root. The 0x prefix is mandatory; a bare hex string is rejected. Responses always render lowercase, but requests accept either case.

Pattern: "^0[xX][0-9a-fA-F]{64}$"

Query Parameters

limitinteger

Canonical decimal page size. Defaults to the configured API limit capped at 100.

Minimum: 1Maximum: 100

offsetinteger

Canonical decimal offset. Positive offsets require all three snapshot parameters.

Default: 0Minimum: 0Maximum: 10000

streamIdstring

Deployment identifier from the first page. Supply together with asOfBlockHash and generation.

Pattern: "^[0-9a-f]{64}$"

asOfBlockHashstring

Lowercase checkpoint block hash from the first page, paired with streamId and generation.

Pattern: "^0x[0-9a-f]{64}$"

generationinteger

Canonical decimal journal generation from the first page, paired with streamId and asOfBlockHash.

Minimum: 0Format: "int64"
curl -X GET "http://lineage-api.xny-staging.svc.cluster.local:8001/v1/records/0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41/collections?limit=1&offset=0&streamId=string&asOfBlockHash=string&generation=0"

Published memberships and commercial state at one canonical checkpoint.

{
  "chainId": "string",
  "streamId": "string",
  "contractAddress": "string",
  "asOfBlock": "string",
  "asOfBlockHash": "string",
  "generation": 0,
  "finality": "string",
  "syncStatus": "string",
  "indexedAt": "2019-08-24T14:15:22Z",
  "total": 0,
  "offset": 10000,
  "limit": 1,
  "recordId": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
  "items": [
    {
      "collectionId": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
      "versionId": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
      "curatorActorId": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
      "memberIndex": 0,
      "memberWeight": "string",
      "memberRoute": "RECORD_HOLDERS",
      "redistributionActorId": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
      "redistributionAccount": "string",
      "contentManifestHash": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
      "memberManifestHash": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
      "distributionPolicyHash": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
      "packageManifestHash": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
      "publicationAgreementHash": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
      "publishedAt": "string",
      "publication": {
        "blockNumber": "string",
        "blockHash": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
        "transactionHash": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
        "logIndex": 0
      },
      "initialTermsRevisionId": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
      "currentTermsRevisionId": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
      "termsSequence": "string",
      "paymentToken": "string",
      "price": "string",
      "licencePolicyHash": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
      "curatorSalesEnabled": true,
      "cloudSalesEnabled": true
    }
  ]
}

Last updated