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