Skip to main content

getChainIdForDidEthr() 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 the chain ID from a supporting legacy representations as well.

Signature:

export declare function getChainIdForDidEthr(verificationMethod: _NormalizedVerificationMethod): number

Parameters

ParameterTypeDescription
verificationMethod_NormalizedVerificationMethodthe VerificationMethod object (from a DID document)

Returns:

number

a chain ID number or undefined if none could be extracted.

This API may change without a BREAKING CHANGE notice.