{"id":32616093,"url":"https://github.com/next-game-solutions/tronr","last_synced_at":"2025-10-30T16:53:16.378Z","repository":{"id":48769456,"uuid":"305829963","full_name":"next-game-solutions/tronr","owner":"next-game-solutions","description":"R toolbox to explore the TRON blockchain","archived":false,"fork":false,"pushed_at":"2021-07-18T13:53:48.000Z","size":1786,"stargazers_count":8,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-28T09:28:19.250Z","etag":null,"topics":["coingecko-api","crypto","cryptocurrency","r","trc-10","trc-20","tron","tron-api","trongrid","tronix","tronscan"],"latest_commit_sha":null,"homepage":"https://next-game-solutions.github.io/tronr/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/next-game-solutions.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-20T20:48:08.000Z","updated_at":"2025-05-23T11:41:58.000Z","dependencies_parsed_at":"2022-08-26T22:10:16.671Z","dependency_job_id":null,"html_url":"https://github.com/next-game-solutions/tronr","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/next-game-solutions/tronr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/next-game-solutions%2Ftronr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/next-game-solutions%2Ftronr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/next-game-solutions%2Ftronr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/next-game-solutions%2Ftronr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/next-game-solutions","download_url":"https://codeload.github.com/next-game-solutions/tronr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/next-game-solutions%2Ftronr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281844692,"owners_count":26571517,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-30T02:00:06.501Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coingecko-api","crypto","cryptocurrency","r","trc-10","trc-20","tron","tron-api","trongrid","tronix","tronscan"],"created_at":"2025-10-30T16:52:56.018Z","updated_at":"2025-10-30T16:53:16.371Z","avatar_url":"https://github.com/next-game-solutions.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# tronr \u003ca href='https://github.com/next-game-solutions/tronr/'\u003e\u003cimg src=\"man/figures/hex-tronr.png\" align=\"right\" height=\"150\"/\u003e\u003c/a\u003e\n\n\u003c!-- badges: start --\u003e\n\n[![R build status](https://github.com/next-game-solutions/tronr/actions/workflows/r.yml/badge.svg)](https://github.com/next-game-solutions/tronr/actions/workflows/r.yml)\n[![Codecov test coverage](https://codecov.io/gh/next-game-solutions/tronr/branch/main/graph/badge.svg?token=Y9HOR0EO40)](https://codecov.io/gh/next-game-solutions/tronr)\n[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)\n\u003c!-- badges: end --\u003e\n\n`tronr` is a toolbox to explore the [TRON blockchain](https://tron.network/index?lng=en). This R package allows one to collect data on the blockchain’s accounts, transactions, token transfers, and smart contract events. In addition, users can query the current and historical market status of [Tronix (TRX)](https://tron.network/trx?lng=en), the native currency of TRON.\n\n## Installation\n\nAt the moment, `tronr` is only available on GitHub and can be installed with:\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"next-game-solutions/tronr\")\n```\n\nA [CRAN](https://cran.r-project.org/) version of the package is planned for release in the near future.\n\n## Examples\n\nDetailed examples of how to use `tronr` can be found in its [online documentation](https://next-game-solutions.github.io/tronr/). Provided below are just a few common queries:\n\n```{r example, message=FALSE, fig.align='center', fig.width=10, fig.height=4.5}\nlibrary(tronr)\nlibrary(dplyr)\nlibrary(ggplot2)\n\n# Current price of TRX expressed in USD, EUR and BTC (Bitcoin):\nget_current_trx_price(vs_currencies = c(\"usd\", \"eur\", \"btc\"))\n\n\n# Querying the TRX market data for a historical period, and plotting the \n# evolution of price:\n(min_timestamp \u003c- as.POSIXct(\"2020-01-01 00:00:00\") %\u003e% to_unix_timestamp())\n(max_timestamp = as.POSIXct(\"2020-05-01 00:00:00\") %\u003e% to_unix_timestamp())\n\nprice_history \u003c- get_trx_market_data_for_time_range(\n  vs_currency = \"usd\",\n  min_timestamp = min_timestamp,\n  max_timestamp = max_timestamp\n)\n\nglimpse(price_history)\n\nprice_history %\u003e% \n  ggplot(aes(timestamp, price)) +\n  geom_line() +\n  theme_minimal()\n\n\n# Information on the latest block on the chain:\nget_block_info(latest = TRUE) %\u003e% \n  glimpse()\n\n\n# Current balance of an account:\nget_account_balance(\"TQjaZ9FD473QBTdUzMLmSyoGB6Yz1CGpux\") %\u003e% \n  glimpse()\n\n\n# TRC-10 asset transfers to / from an account within a time range:\nget_trc10_transfers(\n  related_address = \"TMaBqmMRekKZMQEq3u3QrJpGDwPYZZo87V\",\n  min_timestamp = \"1577837400000\",\n  max_timestamp = \"1577837430000\"\n) %\u003e% glimpse()\n```\n\n## Things to keep in mind when using `tronr`\n\nThe design of this package is rather opinionated, which among other aspects means the following:\n\n1. Under the hood, most of the transaction-related data are queried in `tronr` via a public API that powers the [Tronscan website](https://tronscan.org/). This has a few important implications:\n    - The [Tronscan API](https://github.com/tronscan/tronscan-frontend/blob/master/document/api.md \"Tronscan API\") is considerably slower than the [TronGrid API](https://www.trongrid.io/), which is the recommended tool for use cases that require a computationally efficient and robust mechanism to extract large amounts of data from the TRON blockchain. However, the Tronscan API was chosen due to the richer and more schema-consistent data it returns. As the TronGrid API matures, the decision on using the Tronscan API in `tronr` may be re-considered.\n    - Attempts to perform frequent and/or \"heavy\" queries from the same IP address using `tronr` may be treated by the Tronscan servers as [denial-of-service attacks](https://www.cloudflare.com/en-gb/learning/ddos/glossary/denial-of-service/) and lead to black-listing of that IP address. Users of `tronr` are thus kindly asked to be considerate and implement the respective safeguards in their code (e.g., breaking the queries into smaller chunks, with pauses in between).\n    - As a result of the previous two points, `tronr` is _not_ intended for the development of high-load analytical applications.\n2. Many of the `tronr` functions return data in the form of [nested tibbles](https://tidyr.tidyverse.org/articles/nest.html) (see examples above). Arguably, this is a natural choice for such data, given their hierarchical structure. Nested tibbles were chosen also because they represent a “tidy” data format compatible with the [`tidyverse`](https://www.tidyverse.org/ \"tidyverse\") toolkit (in particular, the [`tidyr`](https://tidyr.tidyverse.org/ \"tidyr\") package). Admittedly, though, not all R users prefer working with the `tidyverse` tools and this makes `tronr` somewhat less accessible and attractive for such users.\n\n\n## Getting help\n\nIf you encounter a clear bug, please file an issue with a minimal reproducible example on [GitHub](https://github.com/next-game-solutions/tronr/issues).\n\n\n## License\n\nThis package is licensed to you under the terms of the MIT License.\n\nThe TRON logo (\"red diamond\") used in the `tronr` hexagon sticker is property of the [TRON Foundation](https://tron.network/). It originates from the official icon pack, which is available for download and free use at the Foundation's website.\n\nCopyright (c) `r substr(as.Date(Sys.Date()), 1, 4)` [Next Game Solutions OÜ](http://nextgamesolutions.com)\n\n---\n\nPlease note that this project is released with a [Contributor Code of Conduct](https://www.contributor-covenant.org/version/1/0/0/code-of-conduct/). By participating in this project you agree to abide by its terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnext-game-solutions%2Ftronr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnext-game-solutions%2Ftronr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnext-game-solutions%2Ftronr/lists"}