prepareSetProfileExtrinsic
prepareSetProfileExtrinsic(
profileData):Promise<SubmittableExtrinsic>
Prepares a setProfile extrinsic to create a profile on the CORD blockchain.
Parameters
• profileData
An array of key-value pairs representing profile attributes
(e.g., [["pub_name", "Alice"], ["pub_email", Bytes([97, 108, 105, 99, 101])]]).
Keys and values can be strings, Bytes, or Uint8Array, or the hash.
Returns
Promise<SubmittableExtrinsic>
A promise that resolves to the prepared SubmittableExtrinsic for the setProfile transaction.
Throws
If an error occurs while preparing the extrinsic.