@nevermined-io/sdk - v3.0.44 / DIDResolvePolicy
Enumeration: DIDResolvePolicy
It described the policy to be used when resolving an asset. It has the following options:
- ImmutableFirst - It checks if there is a reference to an immutable data-store (IPFS, Filecoin, etc) on-chain. If thatβs the case uses the URL to resolve the Metadata. If not try to resolve the metadata using the URL of the Metadata/Marketplace API
- MetadataAPIFirst - Try to resolve the metadata from the Marketplace/Metadata API, if it canβt tries to resolve using the immutable url
- OnlyImmutable - Try to resolve the metadata only from the immutable data store URL
- OnlyMetadataAPI - Try to resolve the metadata only from the Metadata API. It gets the metadata api url from the DIDRegistry
- NoRegisry - Gets the metadata from the Metadata API using as endpoint the metadata api url from the SDK config. This method donβt gets any on-chain information because assumes the DID is not registered on-chain
Table of contents
Enumeration Members
Enumeration Members
ImmutableFirst
β’ ImmutableFirst = 0
Defined in
src/types/MetadataTypes.ts:10
β’ MetadataAPIFirst = 1
Defined in
src/types/MetadataTypes.ts:11
NoRegistry
β’ NoRegistry = 4
Defined in
src/types/MetadataTypes.ts:14
OnlyImmutable
β’ OnlyImmutable = 2
Defined in
src/types/MetadataTypes.ts:12
β’ OnlyMetadataAPI = 3
Defined in
src/types/MetadataTypes.ts:13