getMember method

Future<GetMemberOutput> getMember({
  1. required String memberId,
  2. required String networkId,
})

Returns detailed information about a member.

Applies only to Hyperledger Fabric.

May throw AccessDeniedException. May throw InternalServiceErrorException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter memberId : The unique identifier of the member.

Parameter networkId : The unique identifier of the network to which the member belongs.

Implementation

Future<GetMemberOutput> getMember({
  required String memberId,
  required String networkId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/networks/${Uri.encodeComponent(networkId)}/members/${Uri.encodeComponent(memberId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetMemberOutput.fromJson(response);
}