Represents types returned by the GRPC API of a Concordium node which are
possibly unknown to the SDK version. Unknown means that the type is unknown.
Example
// fail on unknown value constupwardValue: Upward<string> = ... if (!isKnown(upwardValue)) { thrownewError('Uncountered unknown value') } // the value is known from this point
Example
// gracefully handle unknown values constupwardValue: Upward<string> = ... if (!isKnown(upwardValue)) { console.warn('Uncountered unknown value') } else { // the value is known from this point }
Represents types returned by the GRPC API of a Concordium node which are possibly unknown to the SDK version.
Unknown
means that the type is unknown.Example
Example