Skip to content

R/Tidyverse package for Ergo blockchain statistics.

License

Notifications You must be signed in to change notification settings

Eeysirhc/tidyergo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tidyergo

Overview

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.

Installation

# install.packages("devtools")
devtools::install_github("Eeysirhc/tidyergo")

Usage

library(tidyergo) will load the API endpoints for each service with their own prefix identifier.

Examples

ErgoWatch

Balance history of an address

bearwhale <- "9hyDXH72HoNTiG2pvxFQwxAhWBU8CrbvwtJDtnYoa4jfpaSk1d3"
ew_addressesBalanceHistory(bearwhale)

Current P2PK address count

# addresses holding >= 1M+ $MiGoreng
migoreng <- "0779ec04f2fae64e87418a1ad917639d4668f78484f45df962b0dec14a2591d2"
ew_p2pkCount(bal_ge = 1000000, token_id = migoreng)

Token supply: emitted, circulating, and burned

migoreng <- "0779ec04f2fae64e87418a1ad917639d4668f78484f45df962b0dec14a2591d2"
ew_tokensSupply(migoreng)

ErgoDEX

Retrieve AMM platform statistics

ed_platformStats()

Retrieve statistics for all liquidity pools

ed_allPoolStats()

Packages

Installing this package also installs a selection of other R packages as dependencies.

Contributing

Contributions make the open source community an amazing place to inspire, learn, and create. Thus, any improvements to this package is highly appreciated.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/new-stuff)
  3. Commit your changes (git commit -am "Add new stuff improvements")
  4. Push to branch (git push origin feature/new-stuff)
  5. Open a pull request

About

R/Tidyverse package for Ergo blockchain statistics.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages