getTransactionWithHttpInfo method

Future<Response> getTransactionWithHttpInfo(
  1. String environment,
  2. int index,
  3. String signature,
  4. Commitment commitment,
)

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> getTransactionWithHttpInfo(String environment, int index, String signature, Commitment commitment,) async {
  // ignore: prefer_const_declarations
  final path = r'/api/transaction/transaction/{environment}/{index}/{signature}'
    .replaceAll('{environment}', environment)
    .replaceAll('{index}', index.toString())
    .replaceAll('{signature}', signature);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

    queryParams.addAll(_queryParams('', 'commitment', commitment));

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}