getProposal method
Returns detailed information about a proposal.
Applies only to Hyperledger Fabric.
May throw InvalidRequestException. May throw AccessDeniedException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw InternalServiceErrorException.
Parameter networkId
:
The unique identifier of the network for which the proposal is made.
Parameter proposalId
:
The unique identifier of the proposal.
Implementation
Future<GetProposalOutput> getProposal({
required String networkId,
required String proposalId,
}) async {
ArgumentError.checkNotNull(networkId, 'networkId');
_s.validateStringLength(
'networkId',
networkId,
1,
32,
isRequired: true,
);
ArgumentError.checkNotNull(proposalId, 'proposalId');
_s.validateStringLength(
'proposalId',
proposalId,
1,
32,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/networks/${Uri.encodeComponent(networkId)}/proposals/${Uri.encodeComponent(proposalId)}',
exceptionFnMap: _exceptionFns,
);
return GetProposalOutput.fromJson(response);
}