Defines functions getOperations_Transaction

Documented in getOperations_Transaction

#' Get an overview of operations for a transaction on the Stellar ledger.
#' @description Returns all operations that were included in a specific transactions. Converts the JSON response to a list.
#' @param hash character = the transaction id.
#' @param cursor numeric - optional, a paging token - where to start from. Can also be "now".
#' @param limit numeric - optional, the number of records to return. Default is 10.
#' @param order character - optional, "asc" or "desc"
#' @param data.table boolean - if TRUE, a data.table is returned. If FALSE or NULL, a list is returned.
#' @param domain character - signalling to query the testnet or public network. Can be either "testnet" or "public".
#' @return data.table (default) or list
#' @export
#' @note https://www.stellar.org/developers/horizon/reference/endpoints/operations-for-transaction.html
#' @examples
#' \donttest{getOperations_Transaction("someHash")}

getOperations_Transaction <- function(hash, cursor = NULL, limit = 10, order = "asc", data.table = TRUE, domain = "public"){
  request = .requestBuilder("transactions", resource = "operations", id = hash, domain = domain)
  query_list = .checkCommonArgs(order=order,
  response = .getRequest(request, query_list)

Try the xlm package in your browser

Any scripts or data that you put into this service are public.

xlm documentation built on Oct. 23, 2018, 1:04 a.m.