Once you have created a peaqDID, you can also read it using the function..
Function: read(name, address)
Parameters & types:
name REQUIRED <string>: name of DID. address : user wallet address.
Note: If the user has already passed the seed at the time of creating the SDK instance, then it is not necessary to pass address at time to read DID.
name: The name of the DID given when creating the DID. This is a human-readable name that can be used to identify the DID. value: The value of a peaq DID is a hash of the peaq DID document. The peaq DID document contains the peaq DID name and the user's public address, among other information. created: The block number when the DID was created. This provides a timestamp for when the DID was added to the blockchain. # document-: id: peaq DID followed by user public address. controller: The controller of the DID. This is the did of the entity that has control over the DID, and can make updates or revoke the DID if necessary. publickeymultibase: user public address.
Did this page help you?