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