Skip to main content

getEthereumAddress() function

This API is provided as a beta 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.

Signature:

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

Parameters

ParameterTypeDescription
verificationMethodVerificationMethodthe VerificationMethod object (from a DID document)

Returns:

string | undefined

an ethereum address string or undefined if none could be extracted

This API may change without a BREAKING CHANGE notice.