getNetwork method
Returns detailed information about a network.
Applies to Hyperledger Fabric and Ethereum.
May throw AccessDeniedException.
May throw InternalServiceErrorException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter networkId :
The unique identifier of the network to get information about.
Implementation
Future<GetNetworkOutput> getNetwork({
required String networkId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/networks/${Uri.encodeComponent(networkId)}',
exceptionFnMap: _exceptionFns,
);
return GetNetworkOutput.fromJson(response);
}