Ergo is a resilient blockchain platform for contractual money. In addition to Bitcoin-like blockchain architecture, the Ergo protocol provides advanced contractual capabilities based on the eUTXO model which is not possible with Bitcoin.
This R/Tidyverse package leverages the API endpoints from the official Ergo Explorer, ErgoWatch, ErgoDEX, and ErgoPad to retrieve blockchain data across the ecosystem.
# install.packages("devtools")
devtools::install_github("Eeysirhc/tidyergo")
library(tidyergo)
will load the API endpoints for each service with their own prefix identifier.
bearwhale <- "9hyDXH72HoNTiG2pvxFQwxAhWBU8CrbvwtJDtnYoa4jfpaSk1d3"
ew_addressesBalanceHistory(bearwhale)
# addresses holding >= 1M+ $MiGoreng
migoreng <- "0779ec04f2fae64e87418a1ad917639d4668f78484f45df962b0dec14a2591d2"
ew_p2pkCount(bal_ge = 1000000, token_id = migoreng)
migoreng <- "0779ec04f2fae64e87418a1ad917639d4668f78484f45df962b0dec14a2591d2"
ew_tokensSupply(migoreng)
ed_platformStats()
ed_allPoolStats()
Installing this package also installs a selection of other R packages as dependencies.
- httr, web APIs
- jsonlite, JSON handling
- dplyr, data manipulation
- tidyr, data tidying
- purrr, functional programming
Contributions make the open source community an amazing place to inspire, learn, and create. Thus, any improvements to this package is highly appreciated.
- Fork the repository
- Create your feature branch (
git checkout -b feature/new-stuff
) - Commit your changes (
git commit -am "Add new stuff improvements"
) - Push to branch (
git push origin feature/new-stuff
) - Open a pull request