LedgerJsonApiClient instance
CapTableState from getCapTableState
Extraction options
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.
}
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.