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.
get()
data
object_type
// 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 }); Copy
// 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 });
The OCF entity type (e.g., OcfIssuerOutput)
OcfIssuerOutput
Readonly
The Canton contract ID
The OCF entity data with object_type discriminant
Standard result shape for operations that return a single OCF entity.
All
get()operations return this type. Thedatafield contains the OCF entity with anobject_typediscriminant for type-safe pattern matching.Example