# GraphSense API
#
# GraphSense API provides programmatic access to various ledgers' addresses, entities, blocks, transactions and tags for automated and highly efficient forensics tasks.
#
# The version of the OpenAPI document: 1.0.1
# Contact: contact@ikna.io
# Generated by: https://openapi-generator.tech
#' @docType class
#' @title AddressTxs
#'
#' @description AddressTxs Class
#'
#' @format An \code{R6Class} generator object
#'
#' @field address_txs list( \link{AddressTx} )
#'
#' @field next_page character [optional]
#'
#' @importFrom R6 R6Class
#' @importFrom jsonlite fromJSON toJSON
#' @export
AddressTxs <- R6::R6Class(
'AddressTxs',
public = list(
`address_txs` = NULL,
`next_page` = NULL,
initialize = function(
`address_txs`, `next_page`=NULL, ...
) {
local.optional.var <- list(...)
if (!missing(`address_txs`)) {
stopifnot(is.vector(`address_txs`), length(`address_txs`) != 0)
sapply(`address_txs`, function(x) stopifnot(R6::is.R6(x)))
self$`address_txs` <- `address_txs`
}
if (!is.null(`next_page`)) {
stopifnot(is.character(`next_page`), length(`next_page`) == 1)
self$`next_page` <- `next_page`
}
},
toJSON = function() {
AddressTxsObject <- list()
if (!is.null(self$`address_txs`)) {
AddressTxsObject[['address_txs']] <-
lapply(self$`address_txs`, function(x) x$toJSON())
}
if (!is.null(self$`next_page`)) {
AddressTxsObject[['next_page']] <-
self$`next_page`
}
AddressTxsObject
},
fromJSON = function(AddressTxsJson) {
AddressTxsObject <- jsonlite::fromJSON(AddressTxsJson)
if (!is.null(AddressTxsObject$`address_txs`)) {
self$`address_txs` <- ApiClient$new()$deserializeObj(AddressTxsObject$`address_txs`, "array[AddressTx]", loadNamespace("graphsense"))
}
if (!is.null(AddressTxsObject$`next_page`)) {
self$`next_page` <- AddressTxsObject$`next_page`
}
self
},
toJSONString = function() {
jsoncontent <- c(
if (!is.null(self$`address_txs`)) {
sprintf(
'"address_txs":
[%s]
',
paste(sapply(self$`address_txs`, function(x) jsonlite::toJSON(x$toJSON(), auto_unbox=TRUE, digits = NA)), collapse=",")
)},
if (!is.null(self$`next_page`)) {
sprintf(
'"next_page":
"%s"
',
self$`next_page`
)}
)
jsoncontent <- paste(jsoncontent, collapse = ",")
paste('{', jsoncontent, '}', sep = "")
},
fromJSONString = function(AddressTxsJson) {
AddressTxsObject <- jsonlite::fromJSON(AddressTxsJson)
self$`address_txs` <- ApiClient$new()$deserializeObj(AddressTxsObject$`address_txs`, "array[AddressTx]", loadNamespace("graphsense"))
self$`next_page` <- AddressTxsObject$`next_page`
self
}
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.