publicServiceClient static method

Future<HeraClient> publicServiceClient(
  1. String url,
  2. TransportCredentials transportCredentials
)

Implementation

static Future<HeraClient> publicServiceClient(
    String url, TransportCredentials transportCredentials) async {
  Uri apiUri = Uri.parse(url);
  ChannelCredentials channelCredentials =
  await transportCredentials.getTransportCredentials();
  return HeraClient(ClientChannel(apiUri.host,
      port: apiUri.port,
      options: ChannelOptions(credentials: channelCredentials)));
}