Skip to main content

getEthereumAddress() function

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Extracts an ethereum address from a supporting legacy representations.


export declare function getEthereumAddress(verificationMethod: VerificationMethod): string | undefined


verificationMethodVerificationMethodthe VerificationMethod object (from a DID document)


string | undefined

an ethereum address string or undefined if none could be extracted

This API may change without a BREAKING CHANGE notice.