// available endpoint types: Endpoint, Profile, LinkedDomains
available endpoint types: Endpoint, Profile, LinkedDomains
// available endpoint types : Endpoint Profile LinkedDomains
func (c *Client) GetDIDEndpointFromLedger(did string, endpointType string) (string, error) {
	var result = struct {
		Endpoint string `json:"endpoint"`
	}{}
	var queryParams = map[string]string{
		"did":           did,
		"endpoint_type": endpointType,
	}
	err := c.get("/ledger/did-endpoint", queryParams, &result)
	if err != nil {
		return "", err
	}
	return result.Endpoint, nil
}
func ( c * Client ) GetDIDEndpointFromLedger ( did string , endpointType string ) ( string , error ) { var result = struct { Endpoint string `json:"endpoint"` } { } var queryParams = map [ string ] string { " " : did , " " : endpointType , } err := c . get ( " " , queryParams , & result ) if err != nil { return " " , err } return result . Endpoint , nil }
available endpoint types: Endpoint, Profile, LinkedDomains
available endpoint types : Endpoint Profile LinkedDomains