Function: extractCollectionValue()
Unwrap any of: transaction ({ messages: [...] }), raw message ({ typeUrl, value }), or a bare collection value object. Ported from the frontend extractValue…
extractCollectionValue(
input):any
Defined in: packages/bitbadgesjs-sdk/src/core/review-normalize.ts:35
Unwrap any of: transaction ({ messages: [...] }), raw message
({ typeUrl, value }), or a bare collection value object. Ported from
the frontend extractValue helper in reviewItems.ts.
Explicit create messages retain their creation context before losing
the type URL, so immutable standards are not mistaken for updates.
Parameters
input
unknown
Returns
any