Skip to main content

EthrDIDProvider.matchPrefix() method

Tries to determine if this DID provider can manage DIDs with the given prefix.

If this provider was configured for a particular network and that network name or hexChainId is used in the prefix it will return true.

Signature:

matchPrefix(prefix: string): boolean;

Parameters

ParameterTypeDescription
prefixstringThe DID prefix to match against

Returns:

boolean