// Use DID instead of NYM, as NYM is outdated
Use DID instead of NYM, as NYM is outdated
// Use DID instead of NYM as NYM is outdated
func (c *Client) GetDIDRoleFromLedger(did string) (string, error) {
	var result = struct {
		Role string `json:"role"`
	}{}
	var queryParams = map[string]string{
		"did": did,
	}
	err := c.get("/ledger/get-nym-role", queryParams, &result)
	if err != nil {
		return "", err
	}
	return result.Role, nil
}
func ( c * Client ) GetDIDRoleFromLedger ( did string ) ( string , error ) { var result = struct { Role string `json:"role"` } { } var queryParams = map [ string ] string { " " : did , } err := c . get ( " " , queryParams , & result ) if err != nil { return " " , err } return result . Role , nil }
Use DID instead of NYM, as NYM is outdated
Use DID instead of NYM as NYM is outdated