Appearance
Universal Resolver
The Universal Resolver enables the resolution of many different types ("methods") of Decentralized Identifiers (DIDs), using a common interface.
It offers an HTTP(S) binding to the DID Resolution function, which is defined in the W3C CCG's DID Resolution specification.
The Universal Resolver can return DID documents in various representations (JSON, JSON-LD, CBOR), as well as full DID resolution results (DID documents plus metadata).
Besides resolving DIDs, another supported function is dereferencing DID URLs, including support for various parameters and fragments.
API Reference
See https://api.godiddy.com/#tag/Universal-Resolver.
Resolve a DID
When resolving DIDs, the input is a DID plus resolution options, and the output is the DID document plus metadata.
Full DID resolution result
A request without Accept
header (default value) will return the full DID resolution result (DID document plus metadata):
bash
curl -H "Authorization: Bearer b082c420-df67-4b06-899c-b7c51d75fba0" \
-X GET "https://api.godiddy.com/1.0.0/universal-resolver/identifiers/did:indy:idunion:test:BDrEcHc8Tb4Lb2VyQZWEDE"
1
2
2
A request with an Accept
header set to application/ld+json;profile="https://w3id.org/did-resolution"
will also return the full DID resolution result (DID document plus metadata):
bash
curl -H "Authorization: Bearer b082c420-df67-4b06-899c-b7c51d75fba0" \
-H "Accept: application/ld+json;profile=\"https://w3id.org/did-resolution\"" \
-X GET "https://api.godiddy.com/1.0.0/universal-resolver/identifiers/did:indy:idunion:test:BDrEcHc8Tb4Lb2VyQZWEDE"
1
2
3
2
3
Only the DID document, in JSON-LD
A request with an Accept
header set to application/did+ld+json
will return only the DID document in the JSON-LD representation:
bash
curl -H "Authorization: Bearer b082c420-df67-4b06-899c-b7c51d75fba0" \
-H "Accept: application/did+ld+json" \
-X GET "https://api.godiddy.com/1.0.0/universal-resolver/identifiers/did:indy:idunion:test:BDrEcHc8Tb4Lb2VyQZWEDE"
1
2
3
2
3
Only the DID document, in CBOR
A request with an Accept
header set to application/did+cbor
will return only the DID document in the CBOR representation:
bash
curl -H "Authorization: Bearer b082c420-df67-4b06-899c-b7c51d75fba0" \
-H "Accept: application/did+cbor" \
-X GET "https://api.godiddy.com/1.0.0/universal-resolver/identifiers/did:indy:idunion:test:BDrEcHc8Tb4Lb2VyQZWEDE"
1
2
3
2
3