Read the current Record Manager and ended mandates at a canonical checkpoint

Returns the latest binding, its sequence and an offset page of ended mandates, most recent ending first. A never-managed ID has sequence "0", a null current mandate and an empty page. The mandate journal alone cannot establish Record existence. A positive offset requires all three checkpoint parameters from the first page.

GET
/v1/records/{recordId}/mandates
/v1/records/{recordId}/mandates

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/mandates?limit=1&offset=0&streamId=string&asOfBlockHash=string&generation=0"

Current mandate and ended mandates from one canonical checkpoint.

{
  "recordId": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
  "chainId": "string",
  "contractAddress": "string",
  "streamId": "string",
  "asOfBlock": "string",
  "asOfBlockHash": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
  "generation": 0,
  "finality": "canonical",
  "syncStatus": "indexing",
  "indexedAt": "2019-08-24T14:15:22Z",
  "mandateSequence": "string",
  "current": {
    "managerActorId": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
    "mandateId": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
    "sequence": "string",
    "commercialTermsHash": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
    "acceptanceNonce": "string",
    "appointment": {
      "operationId": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
      "governanceAuthorizationId": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
      "blockNumber": "string",
      "blockHash": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
      "transactionHash": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
      "logIndex": 0
    }
  },
  "total": 0,
  "offset": 0,
  "limit": 1,
  "items": [
    {
      "managerActorId": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
      "mandateId": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
      "sequence": "string",
      "commercialTermsHash": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
      "acceptanceNonce": "string",
      "appointment": {
        "operationId": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
        "governanceAuthorizationId": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
        "blockNumber": "string",
        "blockHash": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
        "transactionHash": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
        "logIndex": 0
      },
      "reason": "REPLACED",
      "newSequence": "string",
      "ending": {
        "operationId": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
        "governanceAuthorizationId": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
        "blockNumber": "string",
        "blockHash": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
        "transactionHash": "0x807bacabedff64313f86ee41a00c566462c8b6fc807bacabedff64313f86ee41",
        "logIndex": 0
      }
    }
  ]
}

Last updated