getMember method
Returns detailed information about a member.
Applies only to Hyperledger Fabric.
May throw InvalidRequestException. May throw AccessDeniedException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw InternalServiceErrorException.
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 {
ArgumentError.checkNotNull(memberId, 'memberId');
_s.validateStringLength(
'memberId',
memberId,
1,
32,
isRequired: true,
);
ArgumentError.checkNotNull(networkId, 'networkId');
_s.validateStringLength(
'networkId',
networkId,
1,
32,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/networks/${Uri.encodeComponent(networkId)}/members/${Uri.encodeComponent(memberId)}',
exceptionFnMap: _exceptionFns,
);
return GetMemberOutput.fromJson(response);
}