get_vol_miners: Get volume mined for BTC miners

View source: R/mining.R

get_vol_minersR Documentation

Get volume mined for BTC miners

Description

These functions grab the number of coins miners have won. The function get_vol_miners returns either jsut the aggregated (if get_agg is true) or all miner volumes. Individual miner's volumescan be found using get_miner_vol and passing the name of the miner.

Usage

get_vol_miners(
  since = NULL,
  until = NULL,
  frequency = "24h",
  get_agg = TRUE,
  api_key = Sys.getenv("GN_API_KEY"),
  as_date = TRUE
)

get_miner_vol(
  miner = "aggregated",
  since = NULL,
  until = NULL,
  frequency = "24h",
  api_key = Sys.getenv("GN_API_KEY"),
  as_date = TRUE
)

Arguments

since

The date to start the extraction

until

The date to end the extraction

frequency

What frequency to pull (either "1h" or "24h")

get_agg

A logical for whether to get all miners

api_key

The API key. It defaults to the GN_API_KEY environmental variables

as_date

A logical whether to return a date object if the frequency is "24h"

miner

The name of the miner to use

Details

NOTE: These amounts are available only for BTC.


James-Crypto-Research/GlassnodeR documentation built on Feb. 24, 2025, 3:21 p.m.