get_token_holders: Get Token Holders As Of A Block Height

Description Usage Arguments Details Value Examples

View source: R/get_token_holders.R

Description

Get Token Holders As Of A Block Height

Usage

1
2
3
4
5
6
7
get_token_holders(
  token_contract,
  api_key,
  block_height = "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.

block_height

The block height. If set to "latest", returns the latest block available.

sleep

Interval in seconds between requests.

...

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

Details

This endpoint does a deep-crawl of the blockchain to retrieve all kinds of transactions that references the address.

Value

Returns a data.frame with the balance for the specified token contract of all holders.

Examples

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

get_token_holders(token_contract, MY_API_KEY)
get_token_holders(token_contract, MY_API_KEY, block_height = "11601973")

## End(Not run)

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