getTransactions method

Future<GetTransactionsResponse> getTransactions(
  1. GetTransactionsRequest request
)
inherited

The getTransactions method return a detailed list of transactions starting from the user specified starting point that you can paginate as long as the pages fall within the history retention of their corresponding RPC provider. See: https://developers.stellar.org/docs/data/rpc/api-reference/methods/getTransactions

Implementation

Future<GetTransactionsResponse> getTransactions(
    GetTransactionsRequest request) async {
  JsonRpcMethod getTransactions =
      JsonRpcMethod("getTransactions", args: request.getRequestArgs());
  dio.Response response = await _dio.post(_serverUrl,
      data: json.encode(getTransactions),
      options: dio.Options(headers: _headers));
  if (enableLogging) {
    print("getTransactions response: $response");
  }
  return GetTransactionsResponse.fromJson(response.data);
}