Function: extractFieldValue()
extractFieldValue(
value:unknown):unknown
Defined in: canton/events.ts:520
Extract a primitive value from a Canton Daml field value, handling both the
gRPC { Sum: { Text|Numeric|Int64|Party|ContractId } } envelope and the
legacy verbose JSON API { text|int64|numeric|... } form.
Numeric values returned by the gRPC API have a trailing "." (e.g. "1.")
which is stripped to yield a clean integer string.
Parameters
| Parameter | Type |
|---|---|
value | unknown |
Returns
unknown