Skip to main content
This concept has been absorbed into peaqOS. See peaqID for the current identity model.
Using the initialized SDK instance, you can create a Decentralized Identifier (DID) on-chain, enabling identity-based operations within the peaq. This operation generates a DID document and either:
  • Returns an unsigned transaction or extrinsic (if no signer is available), or
  • Submits the DID creation directly to the blockchain (if signing credentials are present).

create(name, custom_document_fields, address)

Enables the creation of a decentralized identity on-chain for your given entity. * The address is required when no seed is set.

CustomDocumentFields

Verification

Signature

Services

Create DID Code Examples

read(name, address)

Allows a user to read a previously created DID from the chain. * The address is required when no seed is set.

Read DID Code Examples

update(name, custom_document_fields, address)

Updates an existing DID identified by name, overwriting the entire DID document with new custom_document_fields. Use caution, as all existing data is replaced with the newly provided fields. Recommended to use the read method to view the current DID document before updating. * The address is required when no seed is set.

Update DID Code Examples

remove(name, address)

Removes an existing on-chain DID identified by name. Once removed, the DID data is no longer accessible via subsequent reads. * The address is required when no seed is set.

Remove DID Code Examples