Skip to main content
The SDK can generate a serialized DID Document. The chain does not store the full DID Document object, it stores the serialized document in hexadecimal. Use this when you want to send the document on-chain yourself. For what goes into the document, see Custom Document Fields.

generateDidDocument(options)

With chainType: EVM, the static call does not accept verifications (it throws Type must be either Ed25519VerificationKey2020 or Sr25519VerificationKey2020). To include an EcdsaSecp256k1RecoveryMethod2020 verification, use sdk.did.create() on an EVM SDK instance.