prepareUpdateOwnershipExtrinsic
prepareUpdateOwnershipExtrinsic(
registryId,registryEntryId,newOwnerAccount):Promise<SubmittableExtrinsic>
Prepares a transaction to update the ownership of a registry entry on the CORD blockchain.
Constructs an extrinsic using the provided registry and entry URIs, along with the new owner account.
Parameters
Section titled “Parameters”• registryId: string
The id of the registry containing the entry
• registryEntryId: string
The id of the entry to update
• newOwnerAccount: `3${string}`
The SS58 address of the new owner (e.g., 5FHne...).
Returns
Section titled “Returns”Promise<SubmittableExtrinsic>
A promise resolving to the prepared extrinsic for submission.
Throws
Section titled “Throws”If an error occurs while preparing the extrinsic.
Example
Section titled “Example”const extrinsic = await prepareUpdateOwnershipExtrinsic( '2Lwd3xygo...', '123gwd...', '3FHneW46xGXzs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty');console.log(extrinsic); // Prepared extrinsic for submission