Open Cap Table Protocol Canton SDK - v0.2.224
    Preparing search index...

    Function extractCantonOcfManifest

    • Extract all OCF objects from Canton and return them in manifest format.

      This function fetches all entities from a CapTable contract and transforms them into an OCF manifest structure suitable for cap table processing.

      Parameters

      Returns Promise<OcfManifest>

      OCF manifest with all objects grouped by category

      import { getCapTableState, extractCantonOcfManifest } from '@open-captable-protocol/canton';

      const cantonState = await getCapTableState(client, issuerPartyId);
      if (cantonState) {
      const manifest = await extractCantonOcfManifest(client, cantonState);
      // manifest.stakeholders, manifest.stockClasses, manifest.transactions, etc.
      }