@ecp.eth/sdk / comments / decodeMetadataValue
Function: decodeMetadataValue()
function decodeMetadataValue(entry, type): bigint | Json;
Defined in: packages/sdk/src/comments/metadata.ts:515
Decodes a metadata entry value based on its type
Parameters
entry
The metadata entry to decode
type
The metadata type for proper decoding
Returns
bigint
| Json
The decoded value in its original JavaScript type