@ecp.eth/sdk / comments / createMetadataEntry
Function: createMetadataEntry()
function createMetadataEntry(
keyString,
valueType,
value): MetadataEntry;
Defined in: packages/sdk/src/comments/metadata.ts:93
Creates a metadata entry from a key-value pair with explicit type specification
Parameters
keyString
string
The key string
valueType
The metadata type (string, bool, uint256, etc.)
value
The value (string, boolean, number, bigint, or JsonObject)
string
| number
| bigint
| boolean
| JsonObject
Returns
The MetadataEntry