@ecp.eth/sdk / comments / createMetadataKey
Function: createMetadataKey()
function createMetadataKey(keyString, valueType): `0x${string}`;
Defined in: packages/sdk/src/comments/metadata.ts:12
Creates a metadata key by encoding a string in the format "type key" using abi.encodePacked
Parameters
keyString
string
The key string (e.g., "status", "author", "url")
valueType
The type of the value MetadataType
Returns
`0x${string}`
The keccak256 hash of the abi.encodePacked "type key" string