Skip to content

@ecp.eth/sdk


@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

MetadataEntry

The metadata entry to decode

type

MetadataType

The metadata type for proper decoding

Returns

bigint | Json

The decoded value in its original JavaScript type