getProposal method

Future<GetProposalOutput> getProposal({
  1. required String networkId,
  2. required String proposalId,
})

Returns detailed information about a proposal.

Applies only to Hyperledger Fabric.

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

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 {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/networks/${Uri.encodeComponent(networkId)}/proposals/${Uri.encodeComponent(proposalId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetProposalOutput.fromJson(response);
}