get_changes_in_holders: Get Changes In Token Holders Between Two Block Heights

Description Usage Arguments Value Examples

View source: R/get_changes_in_holders.R

Description

Get Changes In Token Holders Between Two Block Heights

Usage

1
2
3
4
5
6
7
8
get_changes_in_holders(
  token_contract,
  api_key,
  starting_block,
  ending_block = "latest",
  sleep = 1/10,
  ...
)

Arguments

token_contract

The token contract address.

api_key

The user's public API key. To generate it, you need an account at Covalent HQ.

starting_block

Starting block to define a block range.

ending_block

Ending block to define a block range.

sleep

Interval in seconds between requests.

...

Additional arguments to pass to the request. For more information on available parameters see Covalent HQ API.

Value

Returns a data.frame with the current/historical balances for the specified token contract of all holders.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
contract <- "0x0954906da0Bf32d5479e25f46056d22f08464cab"

get_changes_in_holders(contract, MY_API_KEY, starting_block = "11500000")

get_changes_in_holders(contract, MY_API_KEY, starting_block = "11500000",
                       ending_block = "11550000")

## End(Not run)

santiagogualchi/cvlnt documentation built on Jan. 22, 2021, 2:34 p.m.