#' Get an overview of payments for a specific transaction.
#' @description Returns all payment operations that are part of a given transaction. 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.
#' @return data.table (by default) or list
#' @export
#' @note https://www.stellar.org/developers/horizon/reference/endpoints/payments-for-tranasction.html
#' @examples
#' \donttest{getPayments_Transaction("someHash")}
getPayments_Transaction <- function(hash, cursor = NULL, limit = 10, order = "asc", data.table = TRUE){
return(
.requestBuilder(
endpoint = "transactions",
hash = hash,
resource = "payments",
cursor = cursor,
limit = limit,
order = order,
data.table = data.table
)
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.