Skip to content

@ecp.eth/sdk


@ecp.eth/sdk / comments / decodeMetadataTypes

Function: decodeMetadataTypes()

function decodeMetadataTypes(metadataEntries): MetadataKeyTypeMap;

Defined in: packages/sdk/src/comments/metadata.ts:662

Decodes metadata types from on-chain metadata entries by reverse-engineering the type information from the encoded key field. Works without requiring prior knowledge of the key-type mappings.

Parameters

metadataEntries

MetadataEntry[]

Array of MetadataEntry from contracts

Returns

MetadataKeyTypeMap

Mapping from hashed key to original key and type information