getService
getService(
did
,id
):DidServiceEndpoint
|undefined
Returns a service endpoint with a given id, if associated with this DID.
Parameters
• did: Pick
<DidDocument
, "service"
>
The DID data.
• id: #${string}
Endpoint id (not the full endpoint uri).
Returns
DidServiceEndpoint
| undefined
The respective endpoint data or undefined.