Skip to content

Reference

getSystemOperatorPartyId — read system_operator from Canton

Standalone ledger helper exporting the Cantonese system-operator party pinned on an issuer’s classified CapTable (package-level export alongside OcpClient).

Expose archive / withdraw automation where DB snapshots lack system_operator. getSystemOperatorPartyId(client, issuerPartyId) reuses classifyIssuerCapTables internals: it throws OcpContractError (CONTRACT_NOT_FOUND / SCHEMA_MISMATCH) identical to archival flows.

import { getSystemOperatorPartyId } from '@open-captable-protocol/canton';

const sysop = await getSystemOperatorPartyId(ocp.ledger, 'issuer::namespace');

Parameters

  • clientLedgerJsonApiClient (usually ocp.ledger).
  • issuerPartyId — Issuer Canton party id tying to the CapTable.

Returns

Promise resolving to string system_operator.



Source