updateEntriesProperties
updateEntriesProperties(
registryId
,registryEntryId
,tx_hash
,blob
):Promise
<IRegistryEntryUpdate
>
Constructs the properties required to update a registry entry in the CORD blockchain.
Prepares data for updating an existing entry, including the registry URI, entry URI,
transaction hash, and optional blob. If no tx_hash
is provided, it computes one from
the blob. The blob, if present, is serialized and encoded in CBOR format.
Parameters
• registryId: string
The identifier of the registry
• registryEntryId: string
The identifier of the entry to update
• tx_hash: any
= null
The new hash of the entry’s content, or null if computed from blob
.
• blob: null
| string
= null
The optional updated serialized data, or null.
Returns
Promise
<IRegistryEntryUpdate
>
A promise resolving to an IRegistryEntryUpdate
object with the updated properties.
Throws
If neither tx_hash
nor blob
is provided, or if tx_hash
is invalid.
Throws
If entry validation fails.
Example
const updatedEntry = await updateEntriesProperties( '2hwdw3xygo...', '2Lqewdabc123...', null, '{"key":"updated"}');console.log('✅ Updated Properties:', updatedEntry);