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
- client —
LedgerJsonApiClient(usuallyocp.ledger). - issuerPartyId — Issuer Canton party id tying to the
CapTable.
Returns
Promise resolving to string system_operator.