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

    Interface ContractResult<T>

    Standard result shape for operations that return a single OCF entity.

    All get() operations return this type. The data field contains the OCF entity with an object_type discriminant for type-safe pattern matching.

    // All get() operations return ContractResult<T>:
    const result = await ocp.OpenCapTable.issuer.get({ contractId });
    console.log(result.data.legal_name);
    console.log(result.contractId);

    // Destructure for convenience:
    const { data: issuer } = await ocp.OpenCapTable.issuer.get({ contractId });
    interface ContractResult<T> {
        contractId: string;
        data: T;
    }

    Type Parameters

    • T

      The OCF entity type (e.g., OcfIssuerOutput)

    Index

    Properties

    Properties

    contractId: string

    The Canton contract ID

    data: T

    The OCF entity data with object_type discriminant