GetCredentialIssuer

Gets a verifiable credential Issuer

rpc GetCredentialIssuer

registry_api.v1.GetCredentialIssuer

Gets a verifiable credential Issuer

requests GetCredentialIssuerRequest

registry_api.v1.GetCredentialIssuerRequest

FieldTypeDescription
issuer_didstringCredential Issuer DID.
resp, _ := credentialIssuerRegistryService.GetCredentialIssuer(ctx, &v1.GetCredentialIssuerRequest{
  IssuerDid: "did:method-name:zDIDCredentialIssuerMultibase58Encoded",
})
fmt.Println(resp)
const getcredentialissuerrequest = new GetCredentialIssuerRequest();
getcredentialissuerrequest.setIssuerDid("did:method-name:zDIDCredentialIssuerMultibase58Encoded");

service.getCredentialIssuer(getcredentialissuerrequest, (err, value:GetCredentialIssuerResponse|null) => {
    const resp = JSON.stringify(err ? err : value);
    console.log("received ", resp);
})
using System;
using Grpc.Core;
using RegistryApi.V1;

namespace main
{
  class Program
  {
    static void Main(string[] args)
    {
      Channel channel = new Channel("cred-reg-service.YOUR_SANDBOX_ID.knoxnetworks.io:443", ChannelCredentials.Insecure); 
      var client = new CredentialIssuerRegistryService.CredentialIssuerRegistryServiceClient(channel); 
      var headers = new Metadata();
      var getCredentialIssuerRequest = new GetCredentialIssuerRequest{
        IssuerDid = "did:method-name:zDIDCredentialIssuerMultibase58Encoded",
      };
      var reply = client.GetCredentialIssuer(getCredentialIssuerRequest, headers);
      Console.WriteLine("Response: " + reply);
      channel.ShutdownAsync().Wait();
    }
  }
}
package demo;

import io.grpc.Channel;
import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
import registry_api.v1.CredentialIssuerRegistryServiceGrpc;
import registry_api.v1.Registry.GetCredentialIssuerRequest;
import registry_api.v1.Registry.GetCredentialIssuerResponse;

public class App {
  public static void main(String[] args) {
    ManagedChannel channel = ManagedChannelBuilder
      .forAddress("cred-reg-service.YOUR_SANDBOX_ID.knoxnetworks.io", 443)
      .usePlaintext()
      .build();
    CredentialIssuerRegistryServiceGrpc.CredentialIssuerRegistryServiceBlockingStub blockStub =
        CredentialIssuerRegistryServiceGrpc.newBlockingStub(channel);
    
    GetCredentialIssuerRequest req_GetCredentialIssuerRequest =
        GetCredentialIssuerRequest.newBuilder()
          .setIssuerDid("did:method-name:zDIDCredentialIssuerMultibase58Encoded")
          .build();
    GetCredentialIssuerResponse resp = blockStub.getCredentialIssuer(req_GetCredentialIssuerRequest);
    System.out.println(resp);
    channel.shutdown();
  }
}
const getcredentialissuerrequest = new GetCredentialIssuerRequest();
getcredentialissuerrequest.setIssuerDid("did:method-name:zDIDCredentialIssuerMultibase58Encoded");

service.getCredentialIssuer(getcredentialissuerrequest, (err, value) => {
    const resp = JSON.stringify(err ? err : value);
    console.log("received ", resp);
})
extern crate grpc-sdks;
use tonic::transport::Channel;

use grpc-sdks::registry_api::v1::credential_issuer_registry_service_client::CredentialIssuerRegistryServiceClient;
use grpc-sdks::registry_api::v1::GetCredentialIssuerRequest;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
  let channel = Channel::from_static("cred-reg-service.YOUR_SANDBOX_ID.knoxnetworks.io")
    .connect()
    .await?;
  let mut client = CredentialIssuerRegistryServiceClient::new(channel); 

  let request = tonic::Request::new(
    GetCredentialIssuerRequest{
      issuer_did: String::from("did:method-name:zDIDCredentialIssuerMultibase58Encoded")
    });
// sending request and waiting for response
  let response = client.get_credential_issuer(request).await?.into_inner();
  println!("RESPONSE={:?}", response);
  Ok(())
}
package app

import io.grpc.ManagedChannelBuilder
import registry_api.v1.CredentialIssuerRegistryServiceGrpc
import registry_api.v1.Registry.GetCredentialIssuerRequest
import registry_api.v1.Registry.GetCredentialIssuerResponse

fun main() {
    val channel = ManagedChannelBuilder
            .forAddress("cred-reg-service.YOUR_SANDBOX_ID.knoxnetworks.io", 443)
            .usePlaintext()
            .build()
    var blockStub = CredentialIssuerRegistryServiceGrpc.newBlockingStub(channel)
    
    val req_GetCredentialIssuerRequest = GetCredentialIssuerRequest.newBuilder()
          .setIssuerDid("did:method-name:zDIDCredentialIssuerMultibase58Encoded")
          .build()
    val resp = blockStub.getCredentialIssuer(req_GetCredentialIssuerRequest)
    println(resp)
    channel.shutdown()
}


returns GetCredentialIssuerResponse

registry_api.v1.GetCredentialIssuerResponse

FieldTypeDescription
credential_issuerCredentialIssuerReturned Credential Issuer.
{
  "credential_issuer": {
    "issuer_did": "did:method-name:zDIDIssuerMultibase58Encoded",
    "issuer_name": "ISSUER_NAME",
    "email": "[email protected]",
    "website": "google.com",
    "postal_address": {
      "country": "United States",
      "city": "Anytown",
      "state": "AL",
      "postal_code": "10101",
      "street": "123 Sesame Street"
    },
    "status": 0
  }
}