@ecp.eth/sdk / comments / MetadataRecord
Type Alias: MetadataRecord
type MetadataRecord = Record<string | Hex, {
key: string;
type: MetadataType;
value: Hex;
}>;Defined in: packages/sdk/src/comments/metadata.ts:75
JS/SDK/Indexer format for metadata storage
The keys is either in format "type key" if the key to type map has been provided, or just the hex hash of the key if not.
Examples
// "key to type map provided"
{
"string status": {
key: "status",
type: "string",
value: "0x0000000000000000000000000000000000000000000000000000000000000000",
},
}// "key to type map not provided"
{
"0x0000000000000000000000000000000000000000000000000000000000000000": {
key: "0x0000000000000000000000000000000000000000000000000000000000000000",
type: "bytes",
value: "0x0000000000000000000000000000000000000000000000000000000000000000",
},
}