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

    Function getOcfDataFieldName

    • Get the data field name used in DAML contracts for a given OCF type.

      This is the field name where OCF data is stored in the contract's create arguments. Useful for extracting OCF data from transaction trees.

      Parameters

      Returns string

      The data field name (e.g., 'stakeholder_data', 'issuance_data')

        getOcfDataFieldName('STAKEHOLDER'); // 'stakeholder_data'
      getOcfDataFieldName('TX_STOCK_ISSUANCE'); // 'issuance_data'
      getOcfDataFieldName('STOCK_CLASS'); // 'stock_class_data'