tests/testthat/test_addresses_api.R

# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate

context("Test AddressesApi")

api.instance <- AddressesApi$new()

test_that("GetAddress", {
  # tests for GetAddress
  # base path: https://api.graphsense.info
  # Get an address, optionally with tags
  # @param currency character The cryptocurrency (e.g., btc)
  # @param address character The cryptocurrency address
  # @param include.tags character Whether tags should be included (optional)
  # @return [Address]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("GetAddressEntity", {
  # tests for GetAddressEntity
  # base path: https://api.graphsense.info
  # Get the entity of an address
  # @param currency character The cryptocurrency (e.g., btc)
  # @param address character The cryptocurrency address
  # @param include.tags character Whether tags should be included (optional)
  # @param tag.coherence character Whether to calculate coherence of address tags (optional)
  # @return [Entity]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("ListAddressLinks", {
  # tests for ListAddressLinks
  # base path: https://api.graphsense.info
  # Get transactions between two addresses
  # @param currency character The cryptocurrency (e.g., btc)
  # @param address character The cryptocurrency address
  # @param neighbor character Neighbor address
  # @return [array[Link]]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("ListAddressLinksCsv", {
  # tests for ListAddressLinksCsv
  # base path: https://api.graphsense.info
  # Get transactions between two addresses as CSV
  # @param currency character The cryptocurrency (e.g., btc)
  # @param address character The cryptocurrency address
  # @param neighbor character Neighbor address
  # @return [character]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("ListAddressNeighbors", {
  # tests for ListAddressNeighbors
  # base path: https://api.graphsense.info
  # Get an addresses&#39; neighbors in the address graph
  # @param currency character The cryptocurrency (e.g., btc)
  # @param address character The cryptocurrency address
  # @param direction character Incoming or outgoing neighbors
  # @param include.labels character Whether labels of tags should be included (optional)
  # @param page character Resumption token for retrieving the next page (optional)
  # @param pagesize integer Number of items returned in a single page (optional)
  # @return [Neighbors]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("ListAddressNeighborsCsv", {
  # tests for ListAddressNeighborsCsv
  # base path: https://api.graphsense.info
  # Get an addresses&#39; neighbors in the address graph as CSV
  # @param currency character The cryptocurrency (e.g., btc)
  # @param address character The cryptocurrency address
  # @param direction character Incoming or outgoing neighbors
  # @param include.labels character Whether labels of tags should be included (optional)
  # @return [character]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("ListAddressTxs", {
  # tests for ListAddressTxs
  # base path: https://api.graphsense.info
  # Get all transactions an address has been involved in
  # @param currency character The cryptocurrency (e.g., btc)
  # @param address character The cryptocurrency address
  # @param page character Resumption token for retrieving the next page (optional)
  # @param pagesize integer Number of items returned in a single page (optional)
  # @return [AddressTxs]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("ListAddressTxsCsv", {
  # tests for ListAddressTxsCsv
  # base path: https://api.graphsense.info
  # Get all transactions an address has been involved in as CSV
  # @param currency character The cryptocurrency (e.g., btc)
  # @param address character The cryptocurrency address
  # @return [character]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("ListAddresses", {
  # tests for ListAddresses
  # base path: https://api.graphsense.info
  # Get addresses
  # @param currency character The cryptocurrency (e.g., btc)
  # @param ids array[character] Restrict result to given set of comma separated IDs (optional)
  # @param page character Resumption token for retrieving the next page (optional)
  # @param pagesize integer Number of items returned in a single page (optional)
  # @return [Addresses]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("ListAddressesCsv", {
  # tests for ListAddressesCsv
  # base path: https://api.graphsense.info
  # Get addresses as CSV
  # @param currency character The cryptocurrency (e.g., btc)
  # @param ids array[character] Set of comma separated IDs
  # @return [character]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("ListTagsByAddress", {
  # tests for ListTagsByAddress
  # base path: https://api.graphsense.info
  # Get attribution tags for a given address
  # @param currency character The cryptocurrency (e.g., btc)
  # @param address character The cryptocurrency address
  # @return [array[AddressTag]]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})

test_that("ListTagsByAddressCsv", {
  # tests for ListTagsByAddressCsv
  # base path: https://api.graphsense.info
  # Get attribution tags for a given address
  # @param currency character The cryptocurrency (e.g., btc)
  # @param address character The cryptocurrency address
  # @return [character]

  # uncomment below to test the operation
  #expect_equal(result, "EXPECTED_RESULT")
})
graphsense/rgraphsense documentation built on Sept. 2, 2022, 1:45 p.m.